mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
e5af790acb
On wl_data_source destruction we used to indirectly unset the DnD selection owner via the wl_resource destructor triggering the destruction of the MetaWaylandDataSource, which would be caught through the weak ref set by the MetaWaylandDragGrab. This works as long as the grab is held, however we have a window between the button being released and the drop site replying with wl_data_offer.finish that the MetaWaylandDataSource is alive, but its destruction wouldn't result in the call chain above to unsetting the DnD source. In other selection sources, we let the MetaWaylandDataDevice hold the "ownership" of the MetaWaylandDataSource, and its weak ref functions unset the respective MetaSelection owners. Do the same here, so the MetaWaylandDataSource destruction is listened for all its lifetime. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/591 |
||
---|---|---|
.. | ||
backends | ||
compositor | ||
core | ||
meta | ||
tests | ||
ui | ||
wayland | ||
x11 | ||
libmutter.pc.in | ||
meson.build | ||
meta-marshal.list | ||
org.freedesktop.login1.xml | ||
org.gnome.Mutter.DisplayConfig.xml | ||
org.gnome.Mutter.IdleMonitor.xml | ||
org.gnome.Mutter.RemoteDesktop.xml | ||
org.gnome.Mutter.ScreenCast.xml |