summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-08-06 23:18:35 +0200
committerVaxry <vaxry@vaxry.net>2025-08-06 23:47:47 +0200
commita4529beb7c0be3980ce857c60b284a90f2ea6eb6 (patch)
tree0d217dbd086e7c5c93536d866600faa5af51ce50 /src/layout
parentd1c8dc5420f6cc2f2b209020ea2eb2b948cc9cbf (diff)
master: avoid crash if openingon null in onWindowCreated
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/MasterLayout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index 384dc884..53dc5c2f 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -177,10 +177,10 @@ void CHyprMasterLayout::onWindowCreatedTiling(PHLWINDOW pWindow, eDirection dire
}
}
- if ((BNEWISMASTER && g_pInputManager->m_dragMode != MBIND_MOVE) //
- || WINDOWSONWORKSPACE == 1 //
- || (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON->isMaster) //
- || forceDropAsMaster //
+ if ((BNEWISMASTER && g_pInputManager->m_dragMode != MBIND_MOVE) //
+ || WINDOWSONWORKSPACE == 1 //
+ || (WINDOWSONWORKSPACE > 2 && !pWindow->m_firstMap && OPENINGON && OPENINGON->isMaster) //
+ || forceDropAsMaster //
|| (*PNEWSTATUS == "inherit" && OPENINGON && OPENINGON->isMaster && g_pInputManager->m_dragMode != MBIND_MOVE)) {
if (BNEWBEFOREACTIVE) {