From 23d00cdd0d3f6870a18b1a0a6910f8351fa57219 Mon Sep 17 00:00:00 2001 From: Aqa-Ib <16420574+Aqa-Ib@users.noreply.github.com> Date: Thu, 19 Dec 2024 19:22:40 +0000 Subject: layout: apply group rules after window creation (#8779) * apply group rules after window creation * clang-format --- src/layout/IHyprLayout.cpp | 6 +++--- 1 file 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) { -- cgit v1.2.3