diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-24 14:04:01 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-24 14:04:01 +0000 |
| commit | 1cc758778956fd472e3906c88afc5e62438650e1 (patch) | |
| tree | cd13fa9efb10e3372280fc7b5efdd9ec4d8568d0 /src/debug/HyprCtl.cpp | |
| parent | 70b5c1b119bd1c350b0bdc9058298146827d669f (diff) | |
recalculate layout on deco or border change
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 48be1c5c..e2c265bf 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -620,8 +620,10 @@ std::string dispatchKeyword(std::string in) { // decorations will probably need a repaint if (COMMAND.contains("decoration:") || COMMAND.contains("border")) { - for (auto& m : g_pCompositor->m_vMonitors) + for (auto& m : g_pCompositor->m_vMonitors) { g_pHyprRenderer->damageMonitor(m.get()); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(m->ID); + } } Debug::log(LOG, "Hyprctl: keyword %s : %s", COMMAND.c_str(), VALUE.c_str()); |
