зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fc59938bee
Коммит
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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче