mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
wayland: Fix action handling more
When updating GdkDrop::actions from changes sent by the compositor, we were inadvertently setting them to 0, causing drops to appear impossible.
This commit is contained in:
parent
709ebcedd4
commit
8c77491150
@ -288,7 +288,8 @@ gdk_wayland_drop_update_actions (GdkWaylandDrop *drop)
|
|||||||
GdkDragAction gdk_actions = 0;
|
GdkDragAction gdk_actions = 0;
|
||||||
uint32_t wl_actions;
|
uint32_t wl_actions;
|
||||||
|
|
||||||
if (drop->action & WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK)
|
if (drop->action == 0 ||
|
||||||
|
drop->action & WL_DATA_DEVICE_MANAGER_DND_ACTION_ASK)
|
||||||
wl_actions = drop->source_actions;
|
wl_actions = drop->source_actions;
|
||||||
else
|
else
|
||||||
wl_actions = drop->action;
|
wl_actions = drop->action;
|
||||||
|
Loading…
Reference in New Issue
Block a user