From: Chris Michael Date: Thu, 27 Oct 2016 18:56:36 +0000 (-0400) Subject: ecore-wl2: Disable pointer frame callback if no cursor surface X-Git-Tag: upstream/1.20.0~3829 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4a483c40bbd7843b0fc8420e55b3d02d7896184;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index b04d9a6..e5a0774 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -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