From 042e79b8888a18554f261c66406231742a019071 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 31 May 2022 14:04:11 +0200 Subject: [PATCH] fix fatal crash --- src/layout/DwindleLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 8659367e..4c163830 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -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); }