[gtk/wip/coreyberla/dnd-x11: 2/2] gdkdrop-x11: Update gdk drop action after determining suggested action
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/coreyberla/dnd-x11: 2/2] gdkdrop-x11: Update gdk drop action after determining suggested action
- Date: Thu, 25 Aug 2022 22:43:39 +0000 (UTC)
commit 8c6698661a1d05bd819a3afdb26dcada8c69945c
Author: Corey Berla <corey berla me>
Date: Thu Aug 25 15:40:28 2022 -0700
gdkdrop-x11: Update gdk drop action after determining suggested action
Since local drags are handled separately from non-local drags,
we haven't been updating the gdk drop action after determining it
in gdk_x11_drop_status. Call gdk_x11_drop_update_action() after
determining what the suggested action is (using the preferred action
from the gtkdroptarget).
gdk/x11/gdkdrop-x11.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gdk/x11/gdkdrop-x11.c b/gdk/x11/gdkdrop-x11.c
index 8f2c718f3c..e0e169bfc8 100644
--- a/gdk/x11/gdkdrop-x11.c
+++ b/gdk/x11/gdkdrop-x11.c
@@ -797,6 +797,9 @@ gdk_x11_drop_status (GdkDrop *drop,
if (gdk_drop_get_drag (drop))
{
gdk_x11_drag_handle_status (display, &xev);
+ drop_x11->suggested_action = suggested_action;
+ drop_x11->xdnd_have_actions = FALSE;
+ gdk_x11_drop_update_actions (drop_x11);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]