diff options
author | vaxerski <[email protected]> | 2023-02-19 20:54:04 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-02-19 20:54:04 +0000 |
commit | f8fbe0057679e215c3ad678c9ae0aae0d757c513 (patch) | |
tree | 6e607acea9361fb8b1fe4050df7d1888bbaede8b | |
parent | 5ff7fdd240d76382e4aa74ea01e1c56b2e90b509 (diff) | |
download | Hyprland-f8fbe0057679e215c3ad678c9ae0aae0d757c513.tar.gz Hyprland-f8fbe0057679e215c3ad678c9ae0aae0d757c513.zip |
disallow setting openingon to itself in mastergroupRework
-rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index e124a12f..15eb6b1b 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -87,7 +87,7 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow) { getNodeFromWindow(g_pCompositor->m_pLastWindow) : getMasterNodeOnWorkspace(pWindow->m_iWorkspaceID); - if (OPENINGON && OPENINGON->pWindow->m_sGroupData.pNextWindow) { + if (OPENINGON && OPENINGON->pWindow->m_sGroupData.pNextWindow && OPENINGON != PNODE) { m_lMasterNodesData.remove(*PNODE); OPENINGON->pWindow->insertWindowToGroup(pWindow); |