From db63eff588c2e6f606c6159e540216f811d4e688 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 25 Oct 2016 13:10:21 -0400 Subject: [PATCH] ecore-wl2: Don't call cursor_update_stop function twice. When setting a cursor by name, the _ecore_wl2_input_cursor_set function already makes a call to stop updating the cursor, so no need to run that twice. @fix Signed-off-by: Chris Michael --- src/lib/ecore_wl2/ecore_wl2_window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index cd796e9..31cf199 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -950,8 +950,7 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surfac _ecore_wl2_input_cursor_update_stop(input); if (input->wl.pointer) - wl_pointer_set_cursor(input->wl.pointer, - input->pointer.enter_serial, + wl_pointer_set_cursor(input->wl.pointer, input->pointer.enter_serial, surface, hot_x, hot_y); } @@ -967,7 +966,6 @@ ecore_wl2_window_cursor_from_name_set(Ecore_Wl2_Window *window, const char *curs input = ecore_wl2_window_input_get(window); if (!input) return; - _ecore_wl2_input_cursor_update_stop(input); _ecore_wl2_input_cursor_set(input, cursor); } -- 2.7.4