1
0
Fork 0

wayland: Plug XDnD drag source leak

This object is just being detached, with no code unref'ing it. Do
this whenever the XDnD selection goes unowned, usually a good
indication that the drag source no longer is one.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1720>
This commit is contained in:
Carlos Garnacho 2021-02-08 20:20:22 +01:00 committed by Marge Bot
parent 3799606fc2
commit 8e01ea1e04

View file

@ -909,6 +909,7 @@ meta_xwayland_dnd_handle_xfixes_selection_notify (MetaWaylandCompositor *composi
else if (event->owner == None)
{
meta_xwayland_end_dnd_grab (data_device, FALSE);
g_clear_object (&dnd->source);
}
return FALSE;