projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cee710
)
wayland: Fix animated cursors
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 5 Nov 2017 16:20:42 +0000
(11:20 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 5 Nov 2017 16:27:06 +0000
(11:27 -0500)
We must reset the image delay when stopping the timeout,
otherwise the code setting it up thinks it is still running.
This fixes cursor animation only working for the very first
enter of a widget with an animated cursor, as seen in the
cursors example in gtk4-demo.
gdk/wayland/gdkdevice-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkdevice-wayland.c
b/gdk/wayland/gdkdevice-wayland.c
index 4c7789b3e2e7279709eb1e3042c02cee71cc5a29..73ce17d87e99564675de0dc52a8453e19f533963 100644
(file)
--- a/
gdk/wayland/gdkdevice-wayland.c
+++ b/
gdk/wayland/gdkdevice-wayland.c
@@
-350,6
+350,7
@@
gdk_wayland_pointer_stop_cursor_animation (GdkWaylandPointerData *pointer)
{
g_source_remove (pointer->cursor_timeout_id);
pointer->cursor_timeout_id = 0;
+ pointer->cursor_image_delay = 0;
}
pointer->cursor_image_index = 0;