From 8b8167b565ebdd817ee3f865356f00bf7266a621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 18 Mar 2015 16:24:25 +0100 Subject: [PATCH] Do not init XRenderUtils on Wayland If something calls into XRender it would be a bug. --- workspace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index fc0699b01b..a1bcb898dc 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -191,7 +191,9 @@ Workspace::Workspace(bool restore) #endif // init XRenderUtils - XRenderUtils::init(connection(), rootWindow()); + if (kwinApp()->operationMode() == Application::OperationModeX11) { + XRenderUtils::init(connection(), rootWindow()); + } if (Compositor::self()) { m_compositor = Compositor::self(); } else {