diff options
author | Aqa-Ib <[email protected]> | 2024-10-08 20:31:15 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-08 19:31:15 +0100 |
commit | 613eac4603f4a15868c88a47a8ee8dcb84ee2dd3 (patch) | |
tree | 268e2feb1a821d44479429c2c203ba39f8f5aed1 /src | |
parent | e4a26f4f1d9d30569b9e7e6c265fccfd42fa5d72 (diff) | |
download | Hyprland-613eac4603f4a15868c88a47a8ee8dcb84ee2dd3.tar.gz Hyprland-613eac4603f4a15868c88a47a8ee8dcb84ee2dd3.zip |
layout: remove unnecessary check after 45e8219 (#8037)
Diffstat (limited to 'src')
-rw-r--r-- | src/layout/IHyprLayout.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index f249d2b5..24ee13f4 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -186,12 +186,12 @@ bool IHyprLayout::onWindowCreatedAutoGroup(PHLWINDOW pWindow) { g_pCompositor->m_pLastWindow.lock() : g_pCompositor->getFirstWindowOnWorkspace(pWindow->workspaceID()); - if ((*PAUTOGROUP || g_pInputManager->m_bWasDraggingWindow) // check if auto_group is enabled, or, if the user is manually dragging the window into the group. - && 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 XWayland windows that should be floated. + 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 XWayland windows that should be floated. pWindow->m_bIsFloating = OPENINGON->m_bIsFloating; // match the floating state |