mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
fix master window finding on closed
This commit is contained in:
@@ -119,7 +119,7 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) {
|
|||||||
if (PNODE->isMaster && MASTERSLEFT < 2) {
|
if (PNODE->isMaster && MASTERSLEFT < 2) {
|
||||||
// find new one
|
// find new one
|
||||||
for (auto& nd : m_lMasterNodesData) {
|
for (auto& nd : m_lMasterNodesData) {
|
||||||
if (!nd.isMaster) {
|
if (!nd.isMaster && nd.workspaceID == PNODE->workspaceID) {
|
||||||
nd.isMaster = true;
|
nd.isMaster = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user