ecore-wl2: Only call pointer_update_stop once

As we already call _ecore_wl2_input_cursor_update_stop above, we
actually don't need to call it a second time.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-10-28 11:27:59 -04:00
parent 860e0d34b0
commit 72f2ac2c3a
1 changed files with 1 additions and 3 deletions

View File

@ -953,9 +953,7 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surfac
input->cursor.hot_x = hot_x;
input->cursor.hot_y = hot_y;
if (!input->cursor.surface)
_ecore_wl2_input_cursor_update_stop(input);
else
if (input->cursor.surface)
_ecore_wl2_input_cursor_update(input);
}