diff options
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 2 | ||||
| -rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index e46a0963..6df54445 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -601,6 +601,8 @@ void CHyprDwindleLayout::recalculateMonitor(const MONITORID& monid) { #ifndef NO_XWAYLAND CBox box = g_pCompositor->calculateX11WorkArea(); + if (!g_pXWayland || !g_pXWayland->m_wm) + return; g_pXWayland->m_wm->updateWorkArea(box.x, box.y, box.w, box.h); #endif } diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index b40c339a..5dde65d6 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -297,6 +297,8 @@ void CHyprMasterLayout::recalculateMonitor(const MONITORID& monid) { #ifndef NO_XWAYLAND CBox box = g_pCompositor->calculateX11WorkArea(); + if (!g_pXWayland || !g_pXWayland->m_wm) + return; g_pXWayland->m_wm->updateWorkArea(box.x, box.y, box.w, box.h); #endif } |
