mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-06 02:18:06 +02:00
dwindle: fix possible crash on null ws
This commit is contained in:
parent
f3fc8d599a
commit
bce58d9d65
1 changed files with 2 additions and 2 deletions
|
|
@ -105,8 +105,8 @@ void CHyprDwindleLayout::applyNodeDataToWindow(SDwindleNodeData* pNode, bool for
|
|||
break;
|
||||
}
|
||||
}
|
||||
} else
|
||||
PMONITOR = g_pCompositor->getWorkspaceByID(pNode->workspaceID)->m_pMonitor.lock();
|
||||
} else if (const auto WS = g_pCompositor->getWorkspaceByID(pNode->workspaceID); WS)
|
||||
PMONITOR = WS->m_pMonitor.lock();
|
||||
|
||||
if (!PMONITOR) {
|
||||
Debug::log(ERR, "Orphaned Node {}!!", pNode);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue