Abstract OutputDevice initialization
ClosedPublic

Authored by romangg on Nov 9 2018, 8:18 PM.

Details

Summary

Move generic Wayland parts of OutputDevice initialization into
AbstractOutput class.

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.
romangg created this revision.Nov 9 2018, 8:18 PM
Restricted Application added a project: KWin. · View Herald TranscriptNov 9 2018, 8:18 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
romangg requested review of this revision.Nov 9 2018, 8:18 PM
davidedmundson accepted this revision.Nov 13 2018, 2:17 PM
davidedmundson added a subscriber: davidedmundson.

I'm not loving the name, the goal of this patchset is to move all of the wayland logic out of the platform.

initWaylandOutput/initXdgOutput are now handled in setEnabled so can be private to AbstractOutput.
We should aim for the same with outputdevice.

I'd rather this was just "AbstractOutput::init()"

Code otherwise is fine

This revision is now accepted and ready to land.Nov 13 2018, 2:17 PM

I'm not loving the name, the goal of this patchset is to move all of the wayland logic out of the platform.

initWaylandOutput/initXdgOutput are now handled in setEnabled so can be private to AbstractOutput.
We should aim for the same with outputdevice.

I'd rather this was just "AbstractOutput::init()"

Code otherwise is fine

Yea, makes sense. I'll take another look at it after this patch series has landed.

This revision was automatically updated to reflect the committed changes.