diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2025-07-20 15:00:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-20 17:00:17 +0200 |
| commit | d4de69381e64e6b13002f719905707459dc6befb (patch) | |
| tree | ba332c96e310e59cf523b78b066b4d6e89fa5ad0 /src/layout/IHyprLayout.cpp | |
| parent | 503fc458d87728cb9cb3d7acb6f654a2a8b4dc31 (diff) | |
internal: set value and goal for window size and position on setGroupCurrent (#11120)
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index d97f8796..aacb9c45 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -49,9 +49,10 @@ void IHyprLayout::onWindowRemoved(PHLWINDOW pWindow) { g_pCompositor->setWindowFullscreenInternal(pWindow, FSMODE_NONE); if (!pWindow->m_groupData.pNextWindow.expired()) { - if (pWindow->m_groupData.pNextWindow.lock() == pWindow) + if (pWindow->m_groupData.pNextWindow.lock() == pWindow) { pWindow->m_groupData.pNextWindow.reset(); - else { + pWindow->updateWindowDecos(); + } else { // find last window and update PHLWINDOW PWINDOWPREV = pWindow->getGroupPrevious(); const auto WINDOWISVISIBLE = pWindow->getGroupCurrent() == pWindow; @@ -226,9 +227,6 @@ bool IHyprLayout::onWindowCreatedAutoGroup(PHLWINDOW pWindow) { pWindow->updateWindowDecos(); recalculateWindow(pWindow); - if (!pWindow->getDecorationByType(DECORATION_GROUPBAR)) - pWindow->addWindowDeco(makeUnique<CHyprGroupBarDecoration>(pWindow)); - return true; } @@ -355,9 +353,6 @@ void IHyprLayout::onEndDragWindow() { pWindow->setGroupCurrent(DRAGGINGWINDOW); DRAGGINGWINDOW->applyGroupRules(); DRAGGINGWINDOW->updateWindowDecos(); - - if (!DRAGGINGWINDOW->getDecorationByType(DECORATION_GROUPBAR)) - DRAGGINGWINDOW->addWindowDeco(makeUnique<CHyprGroupBarDecoration>(DRAGGINGWINDOW)); } } } |
