forked from AuroraMiddleware/gtk
gdkdrop-x11: Fix preferred action
gdk_x11_drop_update_actions() sets actions to drop_x11->suggested_action when !drop_x11->xdnd_have_actions and then sets it again to drop_x11->suggested_action if it is. If xdnd_have_actions is true use xdnd_actions.
This commit is contained in:
parent
188cb49b44
commit
c9c48d78bf
@ -361,9 +361,9 @@ gdk_x11_drop_update_actions (GdkX11Drop *drop_x11)
|
||||
if (!drop_x11->xdnd_have_actions)
|
||||
actions = drop_x11->suggested_action;
|
||||
else if (drop_x11->suggested_action & GDK_ACTION_ASK)
|
||||
actions = drop_x11->xdnd_actions & GDK_ACTION_ALL;
|
||||
actions = drop_x11->xdnd_actions | GDK_ACTION_ASK;
|
||||
else
|
||||
actions = drop_x11->suggested_action;
|
||||
actions = drop_x11->xdnd_actions & GDK_ACTION_ALL;
|
||||
|
||||
gdk_drop_set_actions (GDK_DROP (drop_x11), actions);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user