[server] Use cached current mode more and assert validness
ClosedPublic

Authored by romangg on Aug 28 2019, 12:31 PM.

Details

Summary

We can use the cached current mode in one more case. Additionally make it
more explicit what a valid mode is and when to add them.

Test Plan

Relevant autotests pass. KWin Wayland nested and DRM session work.

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
romangg created this revision.Aug 28 2019, 12:31 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 28 2019, 12:31 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
romangg requested review of this revision.Aug 28 2019, 12:31 PM
davidedmundson accepted this revision.Aug 28 2019, 12:33 PM
This revision is now accepted and ready to land.Aug 28 2019, 12:33 PM
This revision was automatically updated to reflect the committed changes.