kwin/plugins/platforms/drm
David Edmundson 5d7e22e5dc Fix viewport on vertically stacked monitors
Summary:
We want to translate by the monitor position, so that needs to be
the negative of the position.

But Kwin/KScreen treats 0 as the top of all monitors. GL treats 0 as
bottom, so that all needs inverting.

Hence this should be a positive y value for the viewport.

BUG: 386099
BUG: 385655

Test Plan:
Had two monitors
Side by side was - fine
Stacked vertically - still fine

Modded X code to extend in y instead of x.
3 monitors worked fine.

Nested wayland only seems to support one screen?

Reviewers: #plasma

Subscribers: plasma-devel, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8479
2017-10-25 23:13:44 +01:00
..
CMakeLists.txt [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
drm.json
drm_backend.cpp [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
drm_backend.h [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
drm_buffer.cpp
drm_buffer.h
drm_buffer_gbm.cpp [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
drm_buffer_gbm.h [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
drm_inputeventfilter.cpp
drm_inputeventfilter.h
drm_object.cpp
drm_object.h
drm_object_connector.cpp
drm_object_connector.h
drm_object_crtc.cpp
drm_object_crtc.h
drm_object_plane.cpp
drm_object_plane.h
drm_output.cpp
drm_output.h
drm_pointer.h
egl_gbm_backend.cpp Fix viewport on vertically stacked monitors 2017-10-25 23:13:44 +01:00
egl_gbm_backend.h [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
gbm_surface.cpp [platforms/drm] Use a shared pointer for gbm_surface 2017-10-05 21:32:46 +02:00
gbm_surface.h Fix DRM EGL crash regression 2017-10-12 10:12:24 +02:00
logging.cpp
logging.h
scene_qpainter_drm_backend.cpp
scene_qpainter_drm_backend.h
screens_drm.cpp
screens_drm.h