summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-06-15 08:48:27 +0200
committerBenjamin Otte <otte@redhat.com>2018-06-18 23:49:53 +0200
commitaa1f0cfd4f92201d249ba183ba6b2ae88223f56e (patch)
tree7b7d7d5661d48609ede4e92af08aa198b4a3306b /gdk/x11
parent45a6146ca6254a6caa58a8fdfeb6ba35a04202b5 (diff)
downloadgtk+-aa1f0cfd4f92201d249ba183ba6b2ae88223f56e.tar.gz
dnd: Remove GdkDragContext.is_source
All drag contexts are sources these days, the other ones are GdkDrop now.
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkdnd-x11.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index b21c814a57..87f8610cde 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -284,8 +284,7 @@ gdk_x11_drag_context_find (GdkDisplay *display,
: context_x11->proxy_xid)
: None;
- if ((context->is_source) &&
- ((source_xid == None) || (context->source_surface &&
+ if (((source_xid == None) || (context->source_surface &&
(GDK_SURFACE_XID (context->source_surface) == source_xid))) &&
((dest_xid == None) || (context_dest_xid == dest_xid)))
return context;
@@ -2114,8 +2113,6 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface,
NULL);
x11_context = GDK_X11_DRAG_CONTEXT (context);
- context->is_source = TRUE;
-
g_signal_connect (display, "xevent", G_CALLBACK (gdk_x11_drag_context_xevent), context);
precache_target_list (context);
@@ -2433,8 +2430,6 @@ gdk_x11_drag_context_handle_event (GdkDragContext *context,
{
GdkX11DragContext *x11_context = GDK_X11_DRAG_CONTEXT (context);
- if (!context->is_source)
- return FALSE;
if (!x11_context->grab_seat)
return FALSE;