mirror of
https://github.com/brl/mutter.git
synced 2025-06-15 09:49:30 +00:00
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:
@ -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 =
|
||||
|
Reference in New Issue
Block a user