summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-06-04 21:35:17 +0200
committervaxerski <vaxry@vaxry.net>2023-06-04 21:35:23 +0200
commit4ef684f6153c167afd6e84c01a814f46d9f287ae (patch)
tree651ff387ff056adcf204d97ec8c3242ea01c08fc /src/debug/HyprCtl.cpp
parent2629cfeeab6aa7e4d7057d46c3f4f148802807f3 (diff)
hyprctl: recalc layout on setprop
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index a5497bd3..7510e96e 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -999,6 +999,9 @@ std::string dispatchSetProp(std::string request) {
g_pCompositor->updateAllWindowsAnimatedDecorationValues();
+ for (auto& m : g_pCompositor->m_vMonitors)
+ g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->ID);
+
return "ok";
}