forked from AuroraMiddleware/gtk
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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user