TIVI-2250: Fix crasher bug when using a system witout a mouse 61/13661/2
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 11 Dec 2013 21:24:13 +0000 (19:24 -0200)
committerRusty Lynch <rusty.lynch@intel.com>
Wed, 11 Dec 2013 21:56:21 +0000 (13:56 -0800)
Change-Id: Ia3181878ee4dfb82978d245ca7d1861dcefc00e1
Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Coauthored-by: Rusty Lynch <rusty.lynch@intel.com>
src/lib/ecore_wayland/ecore_wl_input.c

index 3c380c5..4d0d688 100644 (file)
@@ -719,7 +719,8 @@ _ecore_wl_input_cb_pointer_enter(void *data, struct wl_pointer *pointer __UNUSED
    input->pointer_enter_serial = serial;
 
    /* The cursor on the surface is undefined until we set it */
-   ecore_wl_input_cursor_from_name_set(input, "left_ptr");
+   if (input->pointer)
+     ecore_wl_input_cursor_from_name_set(input, "left_ptr");
 
    if ((win = wl_surface_get_user_data(surface)))
      {