RFC: Fix wayland backend initialisation

Summary:
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: https://phabricator.kde.org/D19921
This commit is contained in:
Aleix Pol 2019-03-20 17:36:56 +01:00
parent 22a441e071
commit 6d37ce7f36

View file

@ -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;