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:
parent
22a441e071
commit
6d37ce7f36
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue