fractional: reload monitor on new fs scale notifs

fixes #181
This commit is contained in:
Vaxry 2024-07-02 18:54:11 +02:00
parent f4abf5902f
commit 13fcdd79ef

View file

@ -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);
}
}