Do not init XRenderUtils on Wayland

If something calls into XRender it would be a bug.
This commit is contained in:
Martin Gräßlin 2015-03-18 16:24:25 +01:00
parent cd293220bb
commit 8b8167b565

View file

@ -191,7 +191,9 @@ Workspace::Workspace(bool restore)
#endif #endif
// init XRenderUtils // init XRenderUtils
if (kwinApp()->operationMode() == Application::OperationModeX11) {
XRenderUtils::init(connection(), rootWindow()); XRenderUtils::init(connection(), rootWindow());
}
if (Compositor::self()) { if (Compositor::self()) {
m_compositor = Compositor::self(); m_compositor = Compositor::self();
} else { } else {