Commit e8664f83 authored by Martin Flöser's avatar Martin Flöser

Only call xcb_flush in performCompositing if we have an X11 connection

Summary: Otherwise KWin crashes when operating without XWayland support.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7892
parent d16f63b6
......@@ -709,7 +709,9 @@ void Compositor::performCompositing()
if (damaged.count() > 0) {
m_scene->triggerFence();
xcb_flush(connection());
if (auto c = kwinApp()->x11Connection()) {
xcb_flush(c);
}
}
// Move elevated windows to the top of the stacking order
......
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