aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-11-13 14:31:12 +0000
committervaxerski <[email protected]>2022-11-13 14:31:12 +0000
commit884fc4f89c21d670a3703388924ebbe1099e7a51 (patch)
treed70de07d9bc04aa31db6c44af8698839c64ba5b9
parent1e5cab1ee7a82d3381f55963a0ff768c30215602 (diff)
downloadHyprland-884fc4f89c21d670a3703388924ebbe1099e7a51.tar.gz
Hyprland-884fc4f89c21d670a3703388924ebbe1099e7a51.zip
fix master window finding on closed
-rw-r--r--src/layout/MasterLayout.cpp2
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;
}