From 4ef684f6153c167afd6e84c01a814f46d9f287ae Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 4 Jun 2023 21:35:17 +0200 Subject: [PATCH] hyprctl: recalc layout on setprop --- src/debug/HyprCtl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"; }