From 884fc4f89c21d670a3703388924ebbe1099e7a51 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 13 Nov 2022 14:31:12 +0000 Subject: [PATCH] fix master window finding on closed --- src/layout/MasterLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }