diff options
author | Aqa-Ib <[email protected]> | 2024-12-19 19:22:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-19 20:22:40 +0100 |
commit | fd67ee9ecdc7207939fe1dcea9b81050ec7d58c4 (patch) | |
tree | 717164a0818edd9acce999e83d207f77385b3fc8 | |
parent | bec18dc6f943587c23a3e3ec2dc397833e924001 (diff) | |
download | Hyprland-fd67ee9ecdc7207939fe1dcea9b81050ec7d58c4.tar.gz Hyprland-fd67ee9ecdc7207939fe1dcea9b81050ec7d58c4.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) { |