[gtk/wip/coreyberla/dnd-x11: 2/2] gdkdrop-x11: Update gdk drop action after determining suggested action




commit c8a4af951105f75eec6c5d7fe742e5eaa04df83e
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
    
    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 | 4 ++++
 1 file changed, 4 insertions(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]