ecore-wl2: Disable pointer frame callback if no cursor surface

If we have no cursor surface, then we don't need the pointer frame
callback anymore so call cursor_update_stop which will delete the
pointer frame callback

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-10-27 14:56:36 -04:00
parent f39e0ad20d
commit d4a483c40b
1 changed files with 4 additions and 1 deletions

View File

@ -953,7 +953,10 @@ 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;
_ecore_wl2_input_cursor_update(input);
if (!input->cursor.surface)
_ecore_wl2_input_cursor_update_stop(input);
else
_ecore_wl2_input_cursor_update(input);
}
EAPI void