discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=04ef45f55df78d847ba8f85476796befba344b95

commit 04ef45f55df78d847ba8f85476796befba344b95
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jul 28 13:49:30 2017 -0400

    add special case for xwl-originating drags to set dnd actions
    
    there are no protocol methods received for setting actions, so fill them
    in from the xwl source
---
 src/bin/e_comp_wl_data.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 87ffdf903..da25d7cae 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -969,6 +969,11 @@ e_comp_wl_data_device_send_enter(E_Client *ec)
         if (!data_device_res) return;
         offer_res = e_comp_wl_data_device_send_offer(ec);
         if (e_comp_wl->drag_source && (!offer_res)) return;
+        if (e_client_has_xwindow(e_comp_wl->drag_client))
+          {
+             drag_source->offer->dnd_actions = drag_source->dnd_actions;
+             drag_source->offer->preferred_dnd_action = 
drag_source->current_dnd_action;
+          }
         data_offer_update_action(drag_source->offer);
         if (offer_res)
           {

-- 


Reply via email to