Skip to content

Commit 87b55fb

Browse files
committed
master: avoid crash if openingon null in onWindowCreated
1 parent d1c8dc5 commit 87b55fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layout/MasterLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
179179

180180
if ((BNEWISMASTER && g_pInputManager->m_dragMode != MBIND_MOVE) //
181181
|| WINDOWSONWORKSPACE == 1 //
182-
|| (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON->isMaster) //
182+
|| (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON && OPENINGON->isMaster) //
183183
|| forceDropAsMaster //
184184
|| (*PNEWSTATUS == "inherit" && OPENINGON && OPENINGON->isMaster && g_pInputManager->m_dragMode != MBIND_MOVE)) {
185185

0 commit comments

Comments
 (0)