From 537b36d1cb48f8ff9a34d19c3b00d7daf0d01278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Wed, 20 Sep 2017 19:35:21 +0200 Subject: [PATCH] Only try creating X11 shadow if we have an X11 connection Summary: Otherwise it crashes for the first window being created in a KWin/Wayland without XWayland support. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D7894 --- shadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadow.cpp b/shadow.cpp index 0f647c7744..1e8ab867c8 100644 --- a/shadow.cpp +++ b/shadow.cpp @@ -57,7 +57,7 @@ Shadow *Shadow::createShadow(Toplevel *toplevel) if (!shadow && waylandServer()) { shadow = createShadowFromWayland(toplevel); } - if (!shadow) { + if (!shadow && kwinApp()->x11Connection()) { shadow = createShadowFromX11(toplevel); } if (shadow) {