[gtk/wip/otte/dnd: 2/9] wayland: Destroy the offer on	gdk_drop_finish()
- From: Benjamin Otte <otte src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk/wip/otte/dnd: 2/9] wayland: Destroy the offer on	gdk_drop_finish()
 
- Date: Sun, 16 Feb 2020 19:13:30 +0000 (UTC)
 
commit 762c4602fbb88e3712336426a326adf813e5b280
Author: Benjamin Otte <otte redhat com>
Date:   Sun Feb 16 14:14:27 2020 +0100
    wayland: Destroy the offer on gdk_drop_finish()
    
    Otherwise the compositor won't be aware the dnd failed and will in turn
    not notify the drag source.
 gdk/wayland/gdkdrop-wayland.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/wayland/gdkdrop-wayland.c b/gdk/wayland/gdkdrop-wayland.c
index a638b6314f..f9ed7de123 100644
--- a/gdk/wayland/gdkdrop-wayland.c
+++ b/gdk/wayland/gdkdrop-wayland.c
@@ -177,6 +177,8 @@ gdk_wayland_drop_finish (GdkDrop       *drop,
           WL_DATA_OFFER_FINISH_SINCE_VERSION)
         wl_data_offer_finish (wayland_drop->offer);
     }
+
+  g_clear_pointer (&wayland_drop->offer, wl_data_offer_destroy);
 }
 
 static void
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]