mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Bug 1576268 - [Wayland] Use MOVE as a default Drag and Drop action to match X11 behavior, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D43578 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
fc59938bee
commit
388e4b2d74
@ -195,6 +195,12 @@ void WaylandDataOffer::SetDragStatus(GdkDragAction aAction, uint32_t aTime) {
|
||||
uint32_t all_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY |
|
||||
WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE;
|
||||
|
||||
/* Default to move D&D action (Bug 1576268).
|
||||
*/
|
||||
if (dnd_actions == 0) {
|
||||
all_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE;
|
||||
}
|
||||
|
||||
wl_data_offer_set_actions(mWaylandDataOffer, all_actions, dnd_actions);
|
||||
|
||||
/* Workaround Wayland D&D architecture here. To get the data_device_drop()
|
||||
|
Loading…
Reference in New Issue
Block a user