feat: add auto rotate and tablet mode information
ClosedPublic

Authored by romangg on Dec 29 2019, 11:38 PM.

Details

Summary

This adds feature flags if a backend supports auto rotations. While this is not
directly a function of a backend on X11 auto rotation is not tested fully yet
and there are problems with touch input. This way a client can query if auto
rotation is fully functional on a backend.

For the KWayland backend auto rotation and tablet mode information querying is
already wired up but for now deactivated until all KWin patches have been
landed.

Test Plan

Compiles and tests with an XPS 2-in-1, which sadly does not send events about
the tablet state.

Diff Detail

Repository
R110 KScreen Library
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.Dec 29 2019, 11:38 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 29 2019, 11:38 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
romangg requested review of this revision.Dec 29 2019, 11:38 PM
apol accepted this revision.Dec 30 2019, 3:48 PM
This revision is now accepted and ready to land.Dec 30 2019, 3:48 PM
This revision was automatically updated to reflect the committed changes.