mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
layout: apply group rules after window creation (#8779)
* apply group rules after window creation * clang-format
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user