Disallow XRender or NoCompositing on Wayland

If the user specifies KWIN_COMPOSE=X or KWIN_COMPOSE=N or config
says Xrender lets fallback to QPainter.
This commit is contained in:
Martin Gräßlin 2015-11-13 17:12:47 +01:00
parent 22da928d2b
commit d4dbc8c802

View file

@ -946,6 +946,10 @@ bool Options::loadCompositingConfig (bool force)
break; break;
} }
} }
if (kwinApp()->shouldUseWaylandForCompositing() && (compositingMode == XRenderCompositing || compositingMode == NoCompositing)) {
qCDebug(KWIN_CORE) << "Compositing forced to QPainter mode by invalid compositor selection";
compositingMode = QPainterCompositing;
}
setCompositingMode(compositingMode); setCompositingMode(compositingMode);
if (m_compositingMode == NoCompositing) { if (m_compositingMode == NoCompositing) {