summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-12-11 19:24:13 -0200
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-12-19 17:47:50 -0200
commitdbe42d8762340a4bff6b884e75dacc2be1c2d080 (patch)
treeda9ea2381c68073b1586e84ddf5e8bcea6f8ac2b
parent86083432270b91c36c71c33621f00dcd368c3b88 (diff)
TIVI-2250: Fix crasher bug when using a system witout a mouse
Change-Id: Ia3181878ee4dfb82978d245ca7d1861dcefc00e1 Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com> Coauthored-by: Rusty Lynch <rusty.lynch@intel.com>
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 3c380c54..4d0d688d 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -719,7 +719,8 @@ _ecore_wl_input_cb_pointer_enter(void *data, struct wl_pointer *pointer __UNUSED
719 input->pointer_enter_serial = serial; 719 input->pointer_enter_serial = serial;
720 720
721 /* The cursor on the surface is undefined until we set it */ 721 /* The cursor on the surface is undefined until we set it */
722 ecore_wl_input_cursor_from_name_set(input, "left_ptr"); 722 if (input->pointer)
723 ecore_wl_input_cursor_from_name_set(input, "left_ptr");
723 724
724 if ((win = wl_surface_get_user_data(surface))) 725 if ((win = wl_surface_get_user_data(surface)))
725 { 726 {