events: apply monitor state on sessionActive

ref #4839
This commit is contained in:
Vaxry 2024-03-06 18:14:59 +00:00
parent 669ea8a373
commit 8e2a62e53b

View file

@ -169,6 +169,7 @@ void Events::listener_sessionActive(wl_listener* listener, void* data) {
for (auto& m : g_pCompositor->m_vMonitors) { for (auto& m : g_pCompositor->m_vMonitors) {
g_pCompositor->scheduleFrameForMonitor(m.get()); g_pCompositor->scheduleFrameForMonitor(m.get());
g_pHyprRenderer->applyMonitorRule(m.get(), &m->activeMonitorRule, true);
} }
g_pConfigManager->m_bWantsMonitorReload = true; g_pConfigManager->m_bWantsMonitorReload = true;