Commit 537b36d1 authored by Martin Flöser's avatar Martin Flöser

Only try creating X11 shadow if we have an X11 connection

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:
parent 8aa7bb28
......@@ -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) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment