kwin/plugins/platforms
Erik Kurzinger d9c79e3627 [platforms/drm] Fix software cursors with drm backend
Summary:
If hardware cursor support is not available when using the drm backend for
Wayland compositing, the software cursor texture will not be updated when the
cursor image changes, and it will still be drawn when no cursor image is set
(such as when running a full-screen game). Furthermore, the drmModeSetCursor
and drmModeMoveCursor functions will still be unnecessarily called when the
cursor is moved or hidden.

To correct this, SceneOpenGL should connect Platform::cursorChanged as opposed
to Cursor::cursorChanged to its texture update function, as only the former
will be emitted when the cursor is updated and the compositor should check if
the cursor is hidden and the software cursor image is not null before rendering
it. DrmBackend::moveCursor and DrmBackend::hideCursor should also return
immediately if using a software cursor.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18376
2019-03-19 12:46:16 -07:00
..
drm [platforms/drm] Fix software cursors with drm backend 2019-03-19 12:46:16 -07:00
fbdev [platforms/fbdev] Use a better way to correct activating framebuffer devices 2019-03-13 10:49:49 +02:00
hwcomposer [platforms/hwcomposer] Add scaling support 2019-02-22 00:47:08 +00:00
virtual Restrict available supported compositors based on first initialized one 2019-02-22 16:59:08 +01:00
wayland Restrict available supported compositors based on first initialized one 2019-02-22 16:59:08 +01:00
x11 Merge branch 'Plasma/5.15' 2019-03-11 09:23:51 +02:00
CMakeLists.txt Require libinput and udev 2018-02-04 15:00:42 +01:00