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:
Martin Stransky 2019-08-27 12:12:14 +00:00
Родитель fc59938bee
Коммит 388e4b2d74
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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()