From 36e563c79c9acf26e49187f932c8617c08309b0e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 3 Aug 2022 17:12:38 +0200 Subject: [PATCH] reload monitors instantly on tickHyprCtl --- src/debug/HyprCtl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index b30c0392..6422c9d8 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -589,6 +589,10 @@ void HyprCtl::tickHyprCtl() { requestMade = false; requestReady = true; + + if (g_pConfigManager->m_bWantsMonitorReload) { + g_pConfigManager->performMonitorReload(); // will unset + } } std::string getRequestFromThread(std::string rq) {