ecore_wl_input: use cursor_name instead of 'left_ptr' on pointer_enter 75/63975/3
authorDuna Oh <duna.oh@samsung.com>
Tue, 29 Mar 2016 06:27:27 +0000 (15:27 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 4 Apr 2016 05:00:31 +0000 (22:00 -0700)
If the cursor_name is already defined on pointer_enter, use cursor_name instead.

Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: I3fb6d0730aa55788979bdceac064e3cafccc869c

src/lib/ecore_wayland/ecore_wl_input.c

index 0a49cc8..0c7a06f 100644 (file)
@@ -1140,7 +1140,7 @@ _ecore_wl_input_cb_pointer_enter(void *data, struct wl_pointer *pointer EINA_UNU
    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");
+   ecore_wl_input_cursor_from_name_set(input, input->cursor_name);
 
    if ((win = ecore_wl_window_surface_find(surface)))
      {