forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
fe36c24b07
commit
5aad3d7d0e
@ -1818,6 +1818,7 @@ struct _GdkDragAnim {
|
|||||||
static void
|
static void
|
||||||
gdk_drag_anim_destroy (GdkDragAnim *anim)
|
gdk_drag_anim_destroy (GdkDragAnim *anim)
|
||||||
{
|
{
|
||||||
|
gdk_surface_hide (anim->drag->drag_surface);
|
||||||
g_object_unref (anim->drag);
|
g_object_unref (anim->drag);
|
||||||
g_slice_free (GdkDragAnim, anim);
|
g_slice_free (GdkDragAnim, anim);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user