kwin/plugins/platforms/drm
Martin Flöser 9df1744830 Support automatic screen rotation based on orientation sensor
Summary:
This change introduces an OrientationSensor class which wraps a
QOrientationSensor. The OrientationSensor is hold by Screens and gets
enabled if Screens knows about an internal (e.g. LVDS) display which
supports rotation. In addition the OrientationSensor holds an KSni to
enable/disable the automatic rotation support.

The drm platform plugin is adjusted to make use of the OrientationSensor.
The API is defined in a way that this can also be implemented on other
platforms supporting rotation. Most important are hwcomposer and X11
standalone. The latter should be straight forward as rotation is provided
through XRandR. The former needs addition for rotation support first.

Test Plan: Rotated my Yoga 12

Reviewers: #kwin, #plasma, sebas

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8699
2017-11-08 17:44:38 +01:00
..
CMakeLists.txt
drm.json
drm_backend.cpp
drm_backend.h
drm_buffer.cpp
drm_buffer.h
drm_buffer_gbm.cpp
drm_buffer_gbm.h
drm_inputeventfilter.cpp
drm_inputeventfilter.h
drm_object.cpp [platforms/drm] Determine the supported transformation on a plane 2017-11-08 17:44:21 +01:00
drm_object.h [platforms/drm] Determine the supported transformation on a plane 2017-11-08 17:44:21 +01:00
drm_object_connector.cpp
drm_object_connector.h
drm_object_crtc.cpp
drm_object_crtc.h
drm_object_plane.cpp [platforms/drm] Determine the supported transformation on a plane 2017-11-08 17:44:21 +01:00
drm_object_plane.h Support automatic screen rotation based on orientation sensor 2017-11-08 17:44:38 +01:00
drm_output.cpp Support automatic screen rotation based on orientation sensor 2017-11-08 17:44:38 +01:00
drm_output.h Support automatic screen rotation based on orientation sensor 2017-11-08 17:44:38 +01:00
drm_pointer.h
egl_gbm_backend.cpp
egl_gbm_backend.h
gbm_surface.cpp
gbm_surface.h
logging.cpp
logging.h
scene_qpainter_drm_backend.cpp
scene_qpainter_drm_backend.h
screens_drm.cpp Support automatic screen rotation based on orientation sensor 2017-11-08 17:44:38 +01:00
screens_drm.h Support automatic screen rotation based on orientation sensor 2017-11-08 17:44:38 +01:00