aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorAqa-Ib <[email protected]>2024-10-02 11:22:19 +0200
committerGitHub <[email protected]>2024-10-02 10:22:19 +0100
commite2426942e5716a742ea353d2a1de7d7760fbbb41 (patch)
tree046d532f7d0090e9614b66aae34388117b850f3a /src/layout/MasterLayout.cpp
parent5c6c300abfea2539ffad9bcbf857325eec5ab765 (diff)
downloadHyprland-e2426942e5716a742ea353d2a1de7d7760fbbb41.tar.gz
Hyprland-e2426942e5716a742ea353d2a1de7d7760fbbb41.zip
layout: add auto_group to control default grouping (#7883)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index 8fa324b0..04a6ea29 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -116,26 +116,6 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
return;
}
- // if it's a group, add the window
- if (OPENINGON && OPENINGON != PNODE && OPENINGON->pWindow->m_sGroupData.pNextWindow.lock() // target is group
- && pWindow->canBeGroupedInto(OPENINGON->pWindow.lock())) {
-
- m_lMasterNodesData.remove(*PNODE);
-
- static auto USECURRPOS = CConfigValue<Hyprlang::INT>("group:insert_after_current");
- (*USECURRPOS ? OPENINGON->pWindow.lock() : OPENINGON->pWindow->getGroupTail())->insertWindowToGroup(pWindow);
-
- OPENINGON->pWindow->setGroupCurrent(pWindow);
- pWindow->applyGroupRules();
- pWindow->updateWindowDecos();
- recalculateWindow(pWindow);
-
- if (!pWindow->getDecorationByType(DECORATION_GROUPBAR))
- pWindow->addWindowDeco(std::make_unique<CHyprGroupBarDecoration>(pWindow));
-
- return;
- }
-
pWindow->applyGroupRules();
static auto PDROPATCURSOR = CConfigValue<Hyprlang::INT>("master:drop_at_cursor");