[gtk/readonly-events-1: 99/149] x11: Pass the right surface to the dnd filter



commit f11b1d258bbccd937b887a710557c9f308d58ff6
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 18 00:19:26 2020 -0500

    x11: Pass the right surface to the dnd filter

 gdk/x11/gdkeventsource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c
index 9c172b51f4..90bf2c326b 100644
--- a/gdk/x11/gdkeventsource.c
+++ b/gdk/x11/gdkeventsource.c
@@ -259,7 +259,7 @@ gdk_event_source_translate_event (GdkX11Display  *x11_display,
     result = _gdk_wm_protocols_filter (xevent, filter_surface, &event, NULL);
 
   if (result == GDK_FILTER_CONTINUE &&
-      gdk_x11_drop_filter (event->any.surface, xevent))
+      gdk_x11_drop_filter (filter_surface, xevent))
     result = GDK_FILTER_REMOVE;
 
   if (result != GDK_FILTER_CONTINUE)


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