20c032f2ed
mozilla-1567434, mozilla-1573813, mozilla-1574036, mozilla-1576268). - Enable multiprocess compilation.
18 lines
623 B
Diff
18 lines
623 B
Diff
diff --git a/widget/gtk/nsClipboardWayland.cpp b/widget/gtk/nsClipboardWayland.cpp
|
|
--- a/widget/gtk/nsClipboardWayland.cpp
|
|
+++ b/widget/gtk/nsClipboardWayland.cpp
|
|
@@ -195,6 +195,12 @@
|
|
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()
|
|
|