mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:05:59 +01:00
fix master window finding on closed
This commit is contained in:
parent
1e5cab1ee7
commit
884fc4f89c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue