diff options
author | David Edmundson <davidedmundson@kde.org> | 2019-11-28 02:31:17 +0100 |
---|---|---|
committer | David Edmundson <davidedmundson@kde.org> | 2019-11-28 13:01:19 +0100 |
commit | 36974955d13578071387695adb13a47be33e4d32 (patch) | |
tree | f59b424dc8d75b8f50dcf1eec7acf3cda430b884 /tests | |
parent | 09861f0081e6729383808ac4803c7fd1f0ba6dd1 (diff) | |
download | qtwayland-36974955d13578071387695adb13a47be33e4d32.tar.gz |
Avoid animating single frame cursors
Currently to determine if a cursor is animated or not we check the
cursor theme delay.
This doesn't work in practice as by default many cursor themes have a
delay of 50 set even if they don't animate.
This comes from xcursorgen which specifies a delay of 50ms if there
isn't anything set in the config.
(https://github.com/freedesktop/xcursorgen/blob/master/xcursorgen.c#L92)
Given many themes will have a delay we should also check the number of
images in a given cursor.
In order to do that without a double lookup QWaylandCursor needed to
return the native wl_cursor, not wl_cursor_image and move the relevant
logic.
Change-Id: Ie782ace8054910ae76e61cab33ceca0377194929
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions