wayland: Reduce MetaXWaylandSelection to just DnD

All the actual selection management functionality is superseded by
MetaSelection. Reduce it to just handling the XDND messaging and leave
selections to MetaSelection.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/320
This commit is contained in:
Carlos Garnacho
2018-11-22 01:33:13 +01:00
parent 634f512bb0
commit 17d00d49d4
9 changed files with 961 additions and 1810 deletions

View File

@ -610,8 +610,8 @@ destroy_primary_offer (struct wl_resource *resource)
}
static struct wl_resource *
meta_wayland_data_source_send_offer (MetaWaylandDataSource *source,
struct wl_resource *target)
create_and_send_dnd_offer (MetaWaylandDataSource *source,
struct wl_resource *target)
{
MetaWaylandDataSourcePrivate *priv =
meta_wayland_data_source_get_instance_private (source);
@ -872,7 +872,7 @@ meta_wayland_drag_grab_set_focus (MetaWaylandDragGrab *drag_grab,
data_device_resource = wl_resource_find_for_client (&seat->data_device.resource_list, client);
if (source && data_device_resource)
offer = meta_wayland_data_source_send_offer (source, data_device_resource);
offer = create_and_send_dnd_offer (source, data_device_resource);
drag_grab->drag_focus = surface;
drag_grab->drag_focus_destroy_handler_id =