devilhorns pushed a commit to branch master.

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

commit 2f1d32a081e28576a3bf74363302c0a340b83043
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 13 10:31:54 2015 -0400

    enlightenment: Replace old comp_type conditionals
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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 06b17db..9f87d37 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -317,7 +317,7 @@ _e_comp_wl_data_device_drag_finished(E_Drag *drag, int 
dropped)
                   wl_data_device_send_leave(res);
                }
 #ifndef HAVE_WAYLAND_ONLY
-             if ((e_comp->comp_type != E_PIXMAP_TYPE_X) && e_comp_util_has_x())
+             if (e_comp_util_has_xwayland())
                {
                   ecore_x_selection_owner_set(0, ECORE_X_ATOM_SELECTION_XDND, 
ecore_x_current_time_get());
                   ecore_x_window_hide(e_comp->cm_selection);
@@ -378,7 +378,7 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client 
*client, struct wl_resourc
      e_drag_object_set(e_comp->wl_comp_data->drag, ec->frame);
    e_drag_start(e_comp->wl_comp_data->drag, x, y);
 #ifndef HAVE_WAYLAND_ONLY
-   if ((e_comp->comp_type != E_PIXMAP_TYPE_X) && e_comp_util_has_x())
+   if (e_comp_util_has_xwayland())
      {
         ecore_x_window_show(e_comp->cm_selection);
         ecore_x_selection_owner_set(e_comp->cm_selection, 
ECORE_X_ATOM_SELECTION_XDND, ecore_x_current_time_get());

-- 


Reply via email to