mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
x11: Simplify test
Now that we have gdk_drag_context_get_display(), use it.
This commit is contained in:
parent
1b2dccd143
commit
47b47f5835
@ -274,8 +274,7 @@ gdk_x11_drag_context_find (GdkDisplay *display,
|
|||||||
context = (GdkDragContext *)tmp_list->data;
|
context = (GdkDragContext *)tmp_list->data;
|
||||||
context_x11 = (GdkX11DragContext *)context;
|
context_x11 = (GdkX11DragContext *)context;
|
||||||
|
|
||||||
if ((context->source_surface && gdk_surface_get_display (context->source_surface) != display) ||
|
if (gdk_drag_context_get_display (context) != display)
|
||||||
(context->dest_surface && gdk_surface_get_display (context->dest_surface) != display))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
context_dest_xid = context->dest_surface
|
context_dest_xid = context->dest_surface
|
||||||
|
Loading…
Reference in New Issue
Block a user