wayland: Fix restarting cursor animation
authorJonas Ådahl <jadahl@gmail.com>
Wed, 9 May 2018 20:13:10 +0000 (22:13 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 9 May 2018 20:17:03 +0000 (22:17 +0200)
commita5d000cb5ca59fabc35e9a9c033f47ed5814a269
treebef0c6773516be9196a25a49f2161cbf7b58be20
parent47872e517224264a30e4ae33a7f3c103361bb82a
wayland: Fix restarting cursor animation

When an animated cursor was set and the previous cursor animation delay
happened to be the same, we wouldn't restart the animation timeout and
just return G_SOURCE_CONTINUE assuming the timer would continue. This
assumption is however only valid if the function was called from the
timeout, which is not the case.

Instead also arm the timer also if there is no previous timer active.
gdk/wayland/gdkdevice-wayland.c