RFC: Fix wayland backend initialisation
ClosedPublic

Authored by apol on Mar 20 2019, 4:39 PM.

Details

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

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Mar 20 2019, 4:39 PM
Restricted Application added a project: KWin. · View Herald TranscriptMar 20 2019, 4:39 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
apol requested review of this revision.Mar 20 2019, 4:39 PM

I don't get a crash and the patch itself is correct.

If there is another issue, we still need this. Ship it!

davidedmundson accepted this revision.Mar 20 2019, 5:27 PM
This revision is now accepted and ready to land.Mar 20 2019, 5:27 PM
This revision was automatically updated to reflect the committed changes.