aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Monitors.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-21 22:00:03 +0200
committervaxerski <[email protected]>2022-04-21 22:00:03 +0200
commit883d389bc283ac6b29b303a94f063e5575f8416f (patch)
treee4e454db877af47c649d3747b667099327dde95d /src/events/Monitors.cpp
parent304b93a4f609054bb453f89eb38894809a888b38 (diff)
downloadHyprland-883d389bc283ac6b29b303a94f063e5575f8416f.tar.gz
Hyprland-883d389bc283ac6b29b303a94f063e5575f8416f.zip
Make hyprctl thread safe
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r--src/events/Monitors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index 840602bd..3f1d38e1 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -3,6 +3,7 @@
#include "../managers/InputManager.hpp"
#include "../render/Renderer.hpp"
#include "Events.hpp"
+#include "../debug/HyprCtl.hpp"
// --------------------------------------------------------- //
// __ __ ____ _ _ _____ _______ ____ _____ _____ //
@@ -133,6 +134,8 @@ void Events::listener_monitorFrame(void* owner, void* data) {
g_pAnimationManager->tick();
g_pCompositor->cleanupWindows();
+ HyprCtl::tickHyprCtl(); // so that we dont get that race condition multithread bullshit
+
g_pConfigManager->dispatchExecOnce(); // We exec-once when at least one monitor starts refreshing, meaning stuff has init'd
if (g_pConfigManager->m_bWantsMonitorReload)