From: Benjamin Otte Date: Fri, 15 Jun 2018 06:12:33 +0000 (+0200) Subject: x11: Simplify test X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~76 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=47b47f5835208ddcd7f20193b8a63f8d9b394184;p=gtk4.git x11: Simplify test Now that we have gdk_drag_context_get_display(), use it. --- diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index c7bd72d5b2..a321cb55d3 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -274,8 +274,7 @@ gdk_x11_drag_context_find (GdkDisplay *display, context = (GdkDragContext *)tmp_list->data; context_x11 = (GdkX11DragContext *)context; - if ((context->source_surface && gdk_surface_get_display (context->source_surface) != display) || - (context->dest_surface && gdk_surface_get_display (context->dest_surface) != display)) + if (gdk_drag_context_get_display (context) != display) continue; context_dest_xid = context->dest_surface