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:
Matthias Clasen 2020-01-04 09:16:26 -05:00
parent 709ebcedd4
commit 8c77491150

View File

@ -288,7 +288,8 @@ gdk_wayland_drop_update_actions (GdkWaylandDrop *drop)
GdkDragAction gdk_actions = 0;
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;
else
wl_actions = drop->action;