discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2e000a45dc7bbe7ec1a9eede0a3ff4cc6ebfde3f

commit 2e000a45dc7bbe7ec1a9eede0a3ff4cc6ebfde3f
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Aug 10 16:25:04 2015 -0400

    use current ecore-x time when setting selection owner for xwl dnd operations
    
    according to icccm spec, it is not recommented to use currenttime here
---
 src/bin/e_comp_wl_data.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 3de9920..7042a7d 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -307,7 +307,7 @@ _e_comp_wl_data_device_drag_finished(E_Drag *drag, int 
dropped)
 #ifndef HAVE_WAYLAND_ONLY
              if ((e_comp->comp_type != E_PIXMAP_TYPE_X) && e_comp_util_has_x())
                {
-                  ecore_x_selection_owner_set(0, ECORE_X_ATOM_SELECTION_XDND, 
0);
+                  ecore_x_selection_owner_set(0, ECORE_X_ATOM_SELECTION_XDND, 
ecore_x_current_time_get());
                   ecore_x_window_hide(e_comp->cm_selection);
                }
 #endif
@@ -368,7 +368,7 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client 
*client, struct wl_resourc
    if ((e_comp->comp_type != E_PIXMAP_TYPE_X) && e_comp_util_has_x())
      {
         ecore_x_window_show(e_comp->cm_selection);
-        ecore_x_selection_owner_set(e_comp->cm_selection, 
ECORE_X_ATOM_SELECTION_XDND, 0);
+        ecore_x_selection_owner_set(e_comp->cm_selection, 
ECORE_X_ATOM_SELECTION_XDND, ecore_x_current_time_get());
      }
 #endif
    if (e_comp->wl_comp_data->ptr.ec)

-- 


Reply via email to