summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-13 16:42:45 +0000
committerVaxry <vaxry@vaxry.net>2023-11-13 16:42:58 +0000
commit5edb4e4a304bbef1de30a36f7b921ea328d7efc6 (patch)
treeb8cf89817bfde5739dc51e8f9e6d88cb7554c3a6 /src/Window.cpp
parent4d6fa6ed0c6f10671c2bee337dc026f68cc12989 (diff)
decorations: recalc layout and positioner on add/remove
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index c1b79c2d..770350a4 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -202,12 +202,16 @@ void CWindow::updateWindowDecos() {
void CWindow::addWindowDeco(std::unique_ptr<IHyprWindowDecoration> deco) {
m_dWindowDecorations.emplace_back(std::move(deco));
+ g_pDecorationPositioner->forceRecalcFor(this);
updateWindowDecos();
+ g_pLayoutManager->getCurrentLayout()->recalculateWindow(this);
}
void CWindow::removeWindowDeco(IHyprWindowDecoration* deco) {
m_vDecosToRemove.push_back(deco);
+ g_pDecorationPositioner->forceRecalcFor(this);
updateWindowDecos();
+ g_pLayoutManager->getCurrentLayout()->recalculateWindow(this);
}
pid_t CWindow::getPID() {