diff options
author | Martin Stransky <stransky@redhat.com> | 2018-05-29 14:38:06 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2018-05-29 14:38:06 +0200 |
commit | 032f109ee0dbbaddcc700b8e3f5f2cfe41166771 (patch) | |
tree | d4b8022d1c4d8ea9d1c5f22a46fbcc57001e823b /mozilla-1464808.patch | |
parent | Merge branch 'master' into f27 (diff) | |
parent | Added fix for mozbz#1464808 - Set default D&D action to move on Wayland (diff) | |
download | librewolf-fedora-ff-032f109ee0dbbaddcc700b8e3f5f2cfe41166771.tar.gz librewolf-fedora-ff-032f109ee0dbbaddcc700b8e3f5f2cfe41166771.tar.bz2 librewolf-fedora-ff-032f109ee0dbbaddcc700b8e3f5f2cfe41166771.zip |
Merge branch 'master' into f27
Diffstat (limited to 'mozilla-1464808.patch')
-rw-r--r-- | mozilla-1464808.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mozilla-1464808.patch b/mozilla-1464808.patch new file mode 100644 index 0000000..6cb6bde --- /dev/null +++ b/mozilla-1464808.patch @@ -0,0 +1,31 @@ +diff --git a/widget/gtk/nsClipboardWayland.cpp b/widget/gtk/nsClipboardWayland.cpp +--- a/widget/gtk/nsClipboardWayland.cpp ++++ b/widget/gtk/nsClipboardWayland.cpp +@@ -201,21 +201,25 @@ WaylandDataOffer::DragOfferAccept(const + } + + /* We follow logic of gdk_wayland_drag_context_commit_status()/gdkdnd-wayland.c + * here. + */ + void + WaylandDataOffer::SetDragStatus(GdkDragAction aAction, uint32_t aTime) + { +- uint32_t dnd_actions = gdk_to_wl_actions(aAction); + uint32_t all_actions = WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY | + WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE; + +- wl_data_offer_set_actions(mWaylandDataOffer, all_actions, dnd_actions); ++ /* Default Firefox D&D action is move so set it here as a preferred one. ++ Actual D&D action will be select by Wayland compositor and reported ++ at data_offer_action() callback. ++ */ ++ wl_data_offer_set_actions(mWaylandDataOffer, all_actions, ++ WL_DATA_DEVICE_MANAGER_DND_ACTION_MOVE); + + /* Workaround Wayland D&D architecture here. To get the data_device_drop() + signal (which routes to nsDragService::GetData() call) we need to + accept at least one mime type before data_device_leave(). + + Real wl_data_offer_accept() for actualy requested data mime type is + called from nsDragService::GetData(). + */ |