summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-08-25 15:40:28 -0700
committerCorey Berla <corey@berla.me>2022-08-26 16:26:20 -0700
commitc8a4af951105f75eec6c5d7fe742e5eaa04df83e (patch)
treec77b135bdd674d3e2e837946cdb951f4f3c21634
parent2a078ad3c9c6ad91367bfdcf473bcba40a4f6df7 (diff)
downloadgtk+-wip/coreyberla/dnd-x11.tar.gz
gdkdrop-x11: Update gdk drop action after determining suggested actionwip/coreyberla/dnd-x11
Call gdk_x11_drop_update_action() after determining what the suggested action is (using the preferred action from the gtkdroptarget).
-rw-r--r--gdk/x11/gdkdrop-x11.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/x11/gdkdrop-x11.c b/gdk/x11/gdkdrop-x11.c
index 86b794a3dd..9bf68a472f 100644
--- a/gdk/x11/gdkdrop-x11.c
+++ b/gdk/x11/gdkdrop-x11.c
@@ -807,6 +807,10 @@ gdk_x11_drop_status (GdkDrop *drop,
gdk_x11_drop_do_nothing,
display);
}
+
+ drop_x11->suggested_action = suggested_action;
+ drop_x11->xdnd_have_actions = FALSE;
+ gdk_x11_drop_update_actions (drop_x11);
}
static void