summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-21 21:36:45 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-21 21:36:45 +0200
commit5f3ee176a1f9dcbe6b3309762016c1a7524430f0 (patch)
tree70288c970238837f053811b62158b60e5b2eb2b9 /src/debug/HyprCtl.cpp
parentc16ebec3b2a798120a347de170fc22bc6e61b1dd (diff)
only reload monitors when needed with hyprctl
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index d10126dd..1325f557 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -98,7 +98,8 @@ std::string dispatchKeyword(std::string in) {
std::string retval = g_pConfigManager->parseKeyword(COMMAND, VALUE, true);
- g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
+ if (COMMAND == "monitor")
+ g_pConfigManager->m_bWantsMonitorReload = true; // for monitor keywords
if (retval == "")
return "ok";