[gtk/wip/carlosg/x11-dnd: 3/5] gdk/x11: Ensure to hide DnD surface after failed operation
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/x11-dnd: 3/5] gdk/x11: Ensure to hide DnD surface after failed operation
- Date: Thu, 16 Jan 2020 14:05:28 +0000 (UTC)
commit 5aad3d7d0ea50ce2a1122687b0382a1021fd03a0
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 14 00:03:29 2020 +0100
gdk/x11: Ensure to hide DnD surface after failed operation
The drag source might be cached and held alive, only disposed after
future drag begin operations. Ensure the drag surface gets hidden
properly or might might stay transparent but mapped till then.
gdk/x11/gdkdrag-x11.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index 4bf609a1de..b525186f85 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1818,6 +1818,7 @@ struct _GdkDragAnim {
static void
gdk_drag_anim_destroy (GdkDragAnim *anim)
{
+ gdk_surface_hide (anim->drag->drag_surface);
g_object_unref (anim->drag);
g_slice_free (GdkDragAnim, anim);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]