gtkwindow: Use event target widget for WM handling special paths
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 3 Nov 2017 21:13:39 +0000 (22:13 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 3 Nov 2017 21:19:13 +0000 (22:19 +0100)
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

index 574ac9f55451020109f75b16c5d63bf9f1cce4dd..d322cbb9a1fb5d875a06329a01b98d5c31d63049 100644 (file)
@@ -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;