forked from enlightenment/efl
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 <cp.michael@samsung.com>
This commit is contained in:
parent
17652ee8f3
commit
db63eff588
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue