forked from enlightenment/efl
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:
parent
f39e0ad20d
commit
d4a483c40b
|
@ -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_x = hot_x;
|
||||||
input->cursor.hot_y = hot_y;
|
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
|
EAPI void
|
||||||
|
|
Loading…
Reference in New Issue