gesture: Actually track targets

Due to a mismerge, this wasn't actually working,
and was causing criticals from gtk_widget_has_grab
when dragging windows.
This commit is contained in:
Matthias Clasen 2020-02-26 17:06:15 -05:00
parent fa75d7f480
commit dcbecdac31

View File

@ -501,6 +501,7 @@ _gtk_gesture_update_point (GtkGesture *gesture,
gdk_event_unref (data->event);
data->event = gdk_event_ref ((GdkEvent *)event);
data->target = g_object_ref (target);
_update_touchpad_deltas (data);
data->widget_x = x + data->accum_dx;
data->widget_y = y + data->accum_dy;