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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else if (const auto WS = g_pCompositor->getWorkspaceByID(pNode->workspaceID); WS)
|
||||||
PMONITOR = g_pCompositor->getWorkspaceByID(pNode->workspaceID)->m_pMonitor.lock();
|
PMONITOR = WS->m_pMonitor.lock();
|
||||||
|
|
||||||
if (!PMONITOR) {
|
if (!PMONITOR) {
|
||||||
Debug::log(ERR, "Orphaned Node {}!!", pNode);
|
Debug::log(ERR, "Orphaned Node {}!!", pNode);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue