changeset 5482:04abf455eec9

RT-33568 Gtk: onDragDropped event not always received Reviewed-by: anthony
author Alexander Zvegintsev <alexander.zvegintsev@oracle.com>
date Tue, 22 Oct 2013 16:23:10 +0400
parents 1369bb06dabe
children 5064b699677f
files modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp	Tue Oct 22 13:47:58 2013 +0200
+++ b/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp	Tue Oct 22 16:23:10 2013 +0400
@@ -171,9 +171,7 @@
             (jint)event->x_root, (jint)event->y_root,
             translate_gdk_action_to_glass(suggested)));
     CHECK_JNI_EXCEPTION(mainEnv)
-    if (result != suggested && result != GDK_ACTION_COPY) {
-        result = static_cast<GdkDragAction>(0);
-    }
+
     if (enter_ctx.just_entered) {
         enter_ctx.just_entered = FALSE;
     }