diff options
author | Aqa-Ib <[email protected]> | 2024-12-19 19:22:40 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-19 19:26:40 +0000 |
commit | 23d00cdd0d3f6870a18b1a0a6910f8351fa57219 (patch) | |
tree | 0fc2303915d4b2b9a1d830e32c2581d33c632775 | |
parent | 061241d3a23232a70904f063d368dd4c5d4f5f51 (diff) | |
download | Hyprland-23d00cdd0d3f6870a18b1a0a6910f8351fa57219.tar.gz Hyprland-23d00cdd0d3f6870a18b1a0a6910f8351fa57219.zip |
layout: apply group rules after window creation (#8779)
* apply group rules after window creation
* clang-format
-rw-r--r-- | src/layout/IHyprLayout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index d9c2f6a1..cbea46c5 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -20,9 +20,6 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) { pWindow->m_vPseudoSize = pWindow->m_vLastFloatingSize; - if (!g_pXWaylandManager->shouldBeFloated(pWindow)) // do not apply group rules to child windows - pWindow->applyGroupRules(); - bool autoGrouped = IHyprLayout::onWindowCreatedAutoGroup(pWindow); if (autoGrouped) return; @@ -31,6 +28,9 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) { onWindowCreatedFloating(pWindow); else onWindowCreatedTiling(pWindow, direction); + + if (!g_pXWaylandManager->shouldBeFloated(pWindow)) // do not apply group rules to child windows + pWindow->applyGroupRules(); } void IHyprLayout::onWindowRemoved(PHLWINDOW pWindow) { |