aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAqa-Ib <[email protected]>2024-12-19 19:22:40 +0000
committerGitHub <[email protected]>2024-12-19 20:22:40 +0100
commitfd67ee9ecdc7207939fe1dcea9b81050ec7d58c4 (patch)
tree717164a0818edd9acce999e83d207f77385b3fc8
parentbec18dc6f943587c23a3e3ec2dc397833e924001 (diff)
downloadHyprland-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.cpp6
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) {