diff options
author | vaxerski <[email protected]> | 2022-11-13 14:31:12 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-11-13 14:31:12 +0000 |
commit | 884fc4f89c21d670a3703388924ebbe1099e7a51 (patch) | |
tree | d70de07d9bc04aa31db6c44af8698839c64ba5b9 | |
parent | 1e5cab1ee7a82d3381f55963a0ff768c30215602 (diff) | |
download | Hyprland-884fc4f89c21d670a3703388924ebbe1099e7a51.tar.gz Hyprland-884fc4f89c21d670a3703388924ebbe1099e7a51.zip |
fix master window finding on closed
-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 f5d18512..a59d8388 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -119,7 +119,7 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) { if (PNODE->isMaster && MASTERSLEFT < 2) { // find new one for (auto& nd : m_lMasterNodesData) { - if (!nd.isMaster) { + if (!nd.isMaster && nd.workspaceID == PNODE->workspaceID) { nd.isMaster = true; break; } |