[gtk+] wayland: Clean up key repeat timeout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Clean up key repeat timeout
- Date: Fri, 4 Mar 2016 18:56:41 +0000 (UTC)
commit 69479ceaef67908d09b4b489a093bc4d6fa5b9a0
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 4 13:54:39 2016 -0500
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index dae132b..9d2c7d8 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]