fix fatal crash

This commit is contained in:
vaxerski 2022-05-31 14:04:11 +02:00
parent 0055efc4f1
commit 042e79b888

View File

@ -206,7 +206,7 @@ void CHyprDwindleLayout::onWindowCreated(CWindow* pWindow) {
Debug::log(LOG, "OPENINGON: %x, Workspace: %i, Monitor: %i", OPENINGON, PNODE->workspaceID, PMONITOR->ID);
if (OPENINGON->workspaceID != PNODE->workspaceID) {
if (OPENINGON && OPENINGON->workspaceID != PNODE->workspaceID) {
// special workspace handling
OPENINGON = getFirstNodeOnWorkspace(PNODE->workspaceID);
}