From 5edb4e4a304bbef1de30a36f7b921ea328d7efc6 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 13 Nov 2023 16:42:45 +0000 Subject: decorations: recalc layout and positioner on add/remove --- src/Window.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Window.cpp') 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 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() { -- cgit v1.2.3