mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 12:29:49 +01:00
layout: apply group rules after window creation (#8779)
* apply group rules after window creation * clang-format
This commit is contained in:
parent
bec18dc6f9
commit
fd67ee9ecd
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue