devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9be84a1ce7518389329219769fbdd038514ee6f0

commit 9be84a1ce7518389329219769fbdd038514ee6f0
Author: vivek <[email protected]>
Date:   Mon Dec 1 10:00:19 2014 -0500

    ecore-wayland: Check if system has mouse in ecore_wl_input
    
    Summary:
    Added a condition to check if system has mouse before setting
    the cursor on surface.
    
    @fix
    
    Signed-off-by: vivek <[email protected]>
    
    Reviewers: devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D1707
---
 src/lib/ecore_wayland/ecore_wl_input.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_input.c 
b/src/lib/ecore_wayland/ecore_wl_input.c
index 5f80f80..e914d82 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -919,8 +919,9 @@ _ecore_wl_input_cb_pointer_enter(void *data, struct 
wl_pointer *pointer EINA_UNU
    input->display->serial = serial;
    input->pointer_enter_serial = serial;
 
+   if (input->pointer)
    /* The cursor on the surface is undefined until we set it */
-   ecore_wl_input_cursor_from_name_set(input, "left_ptr");
+     ecore_wl_input_cursor_from_name_set(input, "left_ptr");
 
    if ((win = ecore_wl_window_surface_find(surface)))
      {

-- 


Reply via email to