[qpa] Always keep a at least one screen
ClosedPublic

Authored by davidedmundson on Oct 10 2018, 9:34 AM.

Details

Summary

Qt does not like having no screens. Both Qt XCB and Wayland QPAs have
systems pretend there's always at least 1 screen
present.

Kwin already uses a dummy screen on startup, this patch reinserts the
dummy screen if the platform states that all real screens are removed.

BUG: 399564

Test Plan

Logged in, everything still worked
Did not reproduce the original bug

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.
davidedmundson created this revision.Oct 10 2018, 9:34 AM
Restricted Application added a project: KWin. · View Herald TranscriptOct 10 2018, 9:34 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
davidedmundson requested review of this revision.Oct 10 2018, 9:34 AM
zzag accepted this revision.Oct 10 2018, 10:10 AM
This revision is now accepted and ready to land.Oct 10 2018, 10:10 AM
This revision was automatically updated to reflect the committed changes.