summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 2dc798e4..702ed896 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -3029,6 +3029,8 @@ void CCompositor::arrangeMonitors() {
#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
}