[gtk+] gtkwindow: Use event target widget for WM handling special paths



commit b8d3f88ddbbcf125ff18d72576e743b2762a985a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 3 22:13:39 2017 +0100

    gtkwindow: Use event target widget for WM handling special paths
    
    The check used to achieve discarding events not meant for the window
    widget itself (because they are handled in the regular paths). Using
    the target widget is the equivalent now.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 574ac9f..d322cbb 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7569,7 +7569,7 @@ static gboolean
 gtk_window_event (GtkWidget *widget,
                   GdkEvent  *event)
 {
-  if (widget != gtk_get_event_widget (event))
+  if (widget != gtk_get_event_target (event))
     return gtk_window_handle_wm_event (GTK_WINDOW (widget), event, FALSE);
 
   return GDK_EVENT_PROPAGATE;


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