mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-24 19:30:13 +01:00
master: avoid crash if openingon null in onWindowCreated
This commit is contained in:
parent
d1c8dc5420
commit
a4529beb7c
1 changed files with 4 additions and 4 deletions
|
|
@ -179,7 +179,7 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
|
|||
|
||||
if ((BNEWISMASTER && g_pInputManager->m_dragMode != MBIND_MOVE) //
|
||||
|| WINDOWSONWORKSPACE == 1 //
|
||||
|| (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON->isMaster) //
|
||||
|| (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON && OPENINGON->isMaster) //
|
||||
|| forceDropAsMaster //
|
||||
|| (*PNEWSTATUS == "inherit" && OPENINGON && OPENINGON->isMaster && g_pInputManager->m_dragMode != MBIND_MOVE)) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue