[gtk+] window: Fix an event widget/target mixup



commit 33162eee1a7ae22d4a7d5e572c8713958475ba9a
Author: Timm Bäder <mail baedert org>
Date:   Thu Jan 4 13:16:24 2018 +0100

    window: Fix an event widget/target mixup
    
    This makes dragging inside a GtkEntry in the window decoration work
    again.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 932f52f..910264e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1619,7 +1619,7 @@ drag_gesture_update_cb (GtkGestureDrag *gesture,
 
       sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
       event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
-      event_widget = gtk_get_event_widget ((GdkEvent *) event);
+      event_widget = gtk_get_event_target (event);
 
       /* Check whether the target widget should be left alone at handling
        * the sequence, this is better done late to give room for gestures


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]