diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-08-06 23:18:35 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-08-06 23:47:47 +0200 |
| commit | a4529beb7c0be3980ce857c60b284a90f2ea6eb6 (patch) | |
| tree | 0d217dbd086e7c5c93536d866600faa5af51ce50 /src/layout | |
| parent | d1c8dc5420f6cc2f2b209020ea2eb2b948cc9cbf (diff) | |
master: avoid crash if openingon null in onWindowCreated
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 8 |
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) { |
