Skip to content

Commit a4529be

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layout/MasterLayout.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
177177
}
178178
}
179179

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

186186
if (BNEWBEFOREACTIVE) {

0 commit comments

Comments
 (0)