From 70d4fadc39954ce9712cf1504a32a990b87ff131 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 2 Dec 2022 18:47:57 +0000 Subject: [PATCH] schedule frames and reloads on session re-activate --- src/events/Misc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index c78a0698..707cfde9 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -191,6 +191,12 @@ void Events::listener_sessionActive(wl_listener* listener, void* data) { Debug::log(LOG, "Session got activated!"); g_pCompositor->m_bSessionActive = true; + + for (auto& m : g_pCompositor->m_vMonitors) { + g_pCompositor->scheduleFrameForMonitor(m.get()); + } + + g_pConfigManager->m_bWantsMonitorReload = true; } void Events::listener_powerMgrSetMode(wl_listener* listener, void* data) {