Compare commits

...

2 Commits

Author SHA1 Message Date
Corey Berla
c8a4af9511 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).
2022-08-26 16:26:20 -07:00
Corey Berla
2a078ad3c9 gdkdrop-x11: Set xdnd_have_actions in position_filter
These came from the source, so set xdnd_have_actions to TRUE
2022-08-26 16:22:28 -07:00

View File

@@ -655,6 +655,7 @@ xdnd_position_filter (GdkSurface *surface,
impl = GDK_X11_SURFACE (surface);
drop_x11->suggested_action = xdnd_action_from_atom (display, action);
drop_x11->xdnd_have_actions = TRUE;
gdk_x11_drop_update_actions (drop_x11);
drop_x11->last_x = x_root / impl->surface_scale;
@@ -806,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