From 69479ceaef67908d09b4b489a093bc4d6fa5b9a0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 4 Mar 2016 13:54:39 -0500 Subject: [PATCH] wayland: Clean up key repeat timeout When returning G_SOURCE_REMOVE from a callback, we need to reset the source id as well. --- gdk/wayland/gdkdevice-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index dae132b5f7..9d2c7d87ce 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -1804,6 +1804,8 @@ keyboard_repeat (gpointer data) &sync_after_repeat_callback_listener, device); + device->repeat_timer = 0; + return G_SOURCE_REMOVE; }