layout: apply group rules after window creation (#8779)

* apply group rules after window creation

* clang-format
This commit is contained in:
Aqa-Ib 2024-12-19 19:22:40 +00:00 committed by GitHub
parent bec18dc6f9
commit fd67ee9ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,9 +20,6 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) {
pWindow->m_vPseudoSize = pWindow->m_vLastFloatingSize; 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); bool autoGrouped = IHyprLayout::onWindowCreatedAutoGroup(pWindow);
if (autoGrouped) if (autoGrouped)
return; return;
@ -31,6 +28,9 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) {
onWindowCreatedFloating(pWindow); onWindowCreatedFloating(pWindow);
else else
onWindowCreatedTiling(pWindow, direction); onWindowCreatedTiling(pWindow, direction);
if (!g_pXWaylandManager->shouldBeFloated(pWindow)) // do not apply group rules to child windows
pWindow->applyGroupRules();
} }
void IHyprLayout::onWindowRemoved(PHLWINDOW pWindow) { void IHyprLayout::onWindowRemoved(PHLWINDOW pWindow) {