[gtk+/gtk-3-18] wayland: Invert drop_finished/button release call order



commit a0c2ae4709ef1587d072c17fec9d5b157a851a37
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 1 15:11:52 2015 +0100

    wayland: Invert drop_finished/button release call order
    
    If we "release" the button first, the drag will be eventually cancelled,
    we must first signal GDK_DROP_FINISHED, and then release the button so
    the success status prevails.

 gdk/wayland/gdkselection-wayland.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index e5b6a59..5ed98cf 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -779,9 +779,9 @@ data_source_send (void                  *data,
 
   if (context)
     {
-      gdk_wayland_device_unset_grab (gdk_drag_context_get_device (context));
       _gdk_wayland_drag_context_emit_event (context, GDK_DROP_FINISHED,
                                             GDK_CURRENT_TIME);
+      gdk_wayland_device_unset_grab (gdk_drag_context_get_device (context));
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]