diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-01-08 21:22:47 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-01-19 14:17:35 +0100 |
commit | f6b8fb5a6b2e18b3f80587a50c0786492a3b2f3b (patch) | |
tree | e45a9853f8729aa11d42906d1dab4577bc0cb7aa /gdk/gdkevents.c | |
parent | edc4374a634b1597e6c7a3e6136a54f4ed74bb4e (diff) | |
download | gtk+-f6b8fb5a6b2e18b3f80587a50c0786492a3b2f3b.tar.gz |
gdk: Run DnD internal handlers before the main event handler
We'll be stealing those to GTK+, if the GdkDragContext manages
the DnD operation.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r-- | gdk/gdkevents.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 83f8ab11f2..c6bb43e3ce 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -26,6 +26,7 @@ #include "gdkinternals.h" #include "gdkdisplayprivate.h" +#include "gdkdndprivate.h" #include <string.h> #include <math.h> @@ -65,6 +66,9 @@ static GDestroyNotify _gdk_event_notify = NULL; void _gdk_event_emit (GdkEvent *event) { + if (gdk_drag_context_handle_source_event (event)) + return; + if (_gdk_event_func) (*_gdk_event_func) (event, _gdk_event_data); } |