Commit 7a288fb3 authored by Carlos Garnacho's avatar Carlos Garnacho

gtkwidget: Ensure touchpad events trigger the bubbling phase

For all other events, we run the bubble phase deep in the specific
::motion/button-press/release/touch handlers.

For touchpad events, it doesn't make sense to use GtkWidgetClass
slots if the intended way to deal with these are gestures, so we
run the bubble phase directly from gtk_widget_event_internal().
parent 5d6e1e5a
......@@ -7717,6 +7717,10 @@ gtk_widget_event_internal (GtkWidget *widget,
switch (event->type)
{
case GDK_TOUCHPAD_SWIPE:
case GDK_TOUCHPAD_PINCH:
return_val |= _gtk_widget_run_controllers (widget, event, GTK_PHASE_BUBBLE);
/* Fall through */
case GDK_EXPOSE:
case GDK_NOTHING:
signal_num = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment