Skip to content

Commit

Permalink
fix: nullptr dereference in dwindle window creation
Browse files Browse the repository at this point in the history
  • Loading branch information
memchr committed Sep 12, 2023
1 parent 83e8043 commit 0fbc200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/DwindleLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void CHyprDwindleLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection dire
// last fail-safe to avoid duplicate fullscreens
if ((!OPENINGON || OPENINGON->pWindow == pWindow) && getNodesOnWorkspace(PNODE->workspaceID) > 1) {
for (auto& node : m_lDwindleNodesData) {
if (node.workspaceID == PNODE->workspaceID && node.pWindow != pWindow) {
if (node.workspaceID == PNODE->workspaceID && node.pWindow != nullptr && node.pWindow != pWindow) {
OPENINGON = &node;
break;
}
Expand Down

0 comments on commit 0fbc200

Please sign in to comment.