diff options
author | Aqa-Ib <[email protected]> | 2024-10-14 18:31:17 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-14 19:31:17 +0100 |
commit | 01c2ff34ddcb5995409c33c2b549e93b98b56d6b (patch) | |
tree | f1128eb3592b8b1cf3edaa84d26ad68a9647ad31 /src | |
parent | 22b1370ae512c92d84bbcd4cff2a3f8a4496c994 (diff) | |
download | Hyprland-01c2ff34ddcb5995409c33c2b549e93b98b56d6b.tar.gz Hyprland-01c2ff34ddcb5995409c33c2b549e93b98b56d6b.zip |
layout: simplify the conditions to autogroup (#8120)
Diffstat (limited to 'src')
-rw-r--r-- | src/layout/IHyprLayout.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 80c9abff..fa3f8b8d 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -191,14 +191,12 @@ bool IHyprLayout::onWindowCreatedAutoGroup(PHLWINDOW pWindow) { denied = true; if (*PAUTOGROUP // check if auto_group is enabled. - && OPENINGON // check if OPENINGON exists. - && OPENINGON != pWindow // fixes a freeze when activating togglefloat to transform a floating group into a tiled group. && OPENINGON->m_sGroupData.pNextWindow.lock() // check if OPENINGON is a group. && pWindow->canBeGroupedInto(OPENINGON) // check if the new window can be grouped into OPENINGON. - && !g_pXWaylandManager->shouldBeFloated(pWindow) // don't group a new window that should be floated. - && !denied) { // don't group a new floated window into a tiled group. + && !g_pXWaylandManager->shouldBeFloated(pWindow) // fixes the popups of XWayland programs running in a floating group. + && !denied) { // don't group a new floated window into a tiled group (for convenience). - pWindow->m_bIsFloating = OPENINGON->m_bIsFloating; // match the floating state + pWindow->m_bIsFloating = OPENINGON->m_bIsFloating; // match the floating state. Needed to autogroup a new tiled window into a floated group. static auto USECURRPOS = CConfigValue<Hyprlang::INT>("group:insert_after_current"); (*USECURRPOS ? OPENINGON : OPENINGON->getGroupTail())->insertWindowToGroup(pWindow); |