From dbc8d253c3f63018c85af0b024f6cf8f59340081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Jan 2019 16:02:25 +0100 Subject: [PATCH] scrolledwindow: Fix a event widget/event target mixup --- gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 5a6e122c34..b320e6f3b2 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -839,7 +839,7 @@ scrolled_window_drag_begin_cb (GtkScrolledWindow *scrolled_window, gtk_scrolled_window_cancel_deceleration (scrolled_window); sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)); event = gtk_gesture_get_last_event (gesture, sequence); - event_widget = gtk_get_event_widget ((GdkEvent *) event); + event_widget = gtk_get_event_target ((GdkEvent *) event); if (event_widget == priv->vscrollbar || event_widget == priv->hscrollbar || (!may_hscroll (scrolled_window) && !may_vscroll (scrolled_window)))