Commit 6d37ce7f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

RFC: Fix wayland backend initialisation

Otherwise it thinks outputs couldn't be created and it leaves.
Problem is that after this fix it crashes when it actually does things with:
kwin_wayland: /home/apol/devel/frameworks/kwin/composite.cpp:646: void KWin::Compositor::aboutToSwapBuffers(): Assertion `!m_bufferSwapPending' failed.

Test Plan: As said, it proceeds correctly and crashes elsewhere

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision:
parent 22a441e0
......@@ -137,7 +137,7 @@ void EglWaylandBackend::cleanupSurfaces()
bool EglWaylandBackend::createEglWaylandOutput(WaylandOutput *waylandOutput)
auto *output = new EglWaylandOutput(waylandOutput, this);
if (output->init(this)) {
if (!output->init(this)) {
return false;
m_outputs << output;
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