Skip to content

Commit

Permalink
fractional: reload monitor on new fs scale notifs
Browse files Browse the repository at this point in the history
fixes #181
  • Loading branch information
vaxerski committed Jul 2, 2024
1 parent f4abf59 commit 13fcdd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events/Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void Events::handlePreferredScale(void* data, wp_fractional_scale_v1* fractional
if (pLS->fScale != SCALE) {
pLS->fScale = SCALE;
std::lock_guard<std::mutex> lg(g_pHyprpaper->m_mtTickMutex);
pLS->m_pMonitor->wantsReload = true;
g_pHyprpaper->tick(true);
}
}

0 comments on commit 13fcdd7

Please sign in to comment.