[gtk+] wayland: Fix animated cursors



commit 909330f3473a8f1c38196709677753a3c815f688
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 5 11:20:42 2017 -0500

    wayland: Fix animated cursors
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 4c7789b..73ce17d 100644
--- 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]