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.
This commit is contained in:
Carlos Garnacho 2014-05-05 14:21:36 +02:00
parent d9e6395ee9
commit e080eafef8

View File

@ -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;