Skip to content

Commit

Permalink
dwindle: fix possible crash on null ws
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jan 25, 2025
1 parent f3fc8d5 commit bce58d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/DwindleLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bce58d9

Please sign in to comment.