Associate output transforms and orientations
ClosedPublic

Authored by romangg on Nov 24 2019, 11:40 AM.

Details

Summary

We use internally Qt:ScreenOrientation for representing output transforms.

This is not ideal since the values do not map directly to Wayland transform
values, but we can make it work by using OR combinations of
Qt:ScreenOrientations.

Do this for now and see if we should not better introduce an internal enum
mapped directly.

Additionally the OR combinations need to be handled in the drm backend at
various places accordingly as well (see TODOs).

Test Plan

Compiles

Diff Detail

Repository
R108 KWin
Branch
output-device-orientation
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 19120
Build 19138: arc lint + arc unit
romangg created this revision.Nov 24 2019, 11:40 AM
Restricted Application added a project: KWin. · View Herald TranscriptNov 24 2019, 11:40 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
romangg requested review of this revision.Nov 24 2019, 11:40 AM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 26 2019, 9:29 PM
This revision was automatically updated to reflect the committed changes.