mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
xwayland: Set XDND source-side actions as per XDND
In XDND, we just get a hint on XdndPosition about what's the action chosen by the user. Make the data source actions the full set on XdndEnter (as we can't know better), and pass the hint in XdndPosition as the user chosen action as it should be. Makes Wayland drop sites aware of the user action as per XDND with X11 drag sources, and still makes modifiers during DnD work. https://gitlab.gnome.org/GNOME/mutter/issues/974 https://gitlab.gnome.org/GNOME/mutter/merge_requests/1005
This commit is contained in:

committed by
Robert Mader

parent
a6c195b05c
commit
090a6ad409
@ -345,9 +345,9 @@ meta_wayland_data_source_set_actions (MetaWaylandDataSource *source,
|
||||
priv->actions_set = TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
meta_wayland_data_source_set_user_action (MetaWaylandDataSource *source,
|
||||
enum wl_data_device_manager_dnd_action action)
|
||||
void
|
||||
meta_wayland_data_source_set_user_action (MetaWaylandDataSource *source,
|
||||
uint32_t action)
|
||||
{
|
||||
MetaWaylandDataSourcePrivate *priv =
|
||||
meta_wayland_data_source_get_instance_private (source);
|
||||
|
Reference in New Issue
Block a user