From 8e2a62e53bf51e8b4ae719d0e46797b0a26eeb22 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Mar 2024 18:14:59 +0000 Subject: [PATCH] events: apply monitor state on sessionActive ref #4839 --- src/events/Misc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index 35721832..0ee95ac3 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -169,6 +169,7 @@ void Events::listener_sessionActive(wl_listener* listener, void* data) { for (auto& m : g_pCompositor->m_vMonitors) { g_pCompositor->scheduleFrameForMonitor(m.get()); + g_pHyprRenderer->applyMonitorRule(m.get(), &m->activeMonitorRule, true); } g_pConfigManager->m_bWantsMonitorReload = true;