[gtk/dnd-gestures-2: 66/66] wayland: Fix action handling more
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 66/66] wayland: Fix action handling more
- Date: Sat, 4 Jan 2020 14:32:55 +0000 (UTC)
commit dca464f2c5ff22b1bca144ffacaf1a2a38fb6526
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 4 09:16:26 2020 -0500
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.
gdk/wayland/gdkdrop-wayland.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/wayland/gdkdrop-wayland.c b/gdk/wayland/gdkdrop-wayland.c
index 3e0a25deaa..686157fd81 100644
--- a/gdk/wayland/gdkdrop-wayland.c
+++ b/gdk/wayland/gdkdrop-wayland.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]