[gtk+/gestures: 128/140] gesture: Handle GDK_TOUCH_CANCEL events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 128/140] gesture: Handle GDK_TOUCH_CANCEL events
- Date: Tue, 6 May 2014 16:51:41 +0000 (UTC)
commit dea036bb7aa0cea194ac9f422ed1659a84aeea01
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon May 5 14:21:36 2014 +0200
gesture: Handle GDK_TOUCH_CANCEL events
The wayland windowing backend emits such events for instance, so
have gestures cancel the sequence as those events get through.
gtk/gtkgesture.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 30d944a..d9bb937 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -523,6 +523,9 @@ gtk_gesture_handle_event (GtkEventController *controller,
_gtk_gesture_check_recognized (gesture, sequence))
g_signal_emit (gesture, signals[UPDATE], 0, sequence);
break;
+ case GDK_TOUCH_CANCEL:
+ gtk_gesture_cancel_sequence (gesture, sequence);
+ break;
default:
/* Unhandled event */
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]