if (input->repeat.timer) ecore_timer_del(input->repeat.timer);
- _ecore_wl2_input_cursor_update_stop(input);
-
if (input->cursor.name) eina_stringshare_del(input->cursor.name);
if (input->data.types.data)
void
_ecore_wl2_input_cursor_set(Ecore_Wl2_Input *input, const char *cursor)
{
- _ecore_wl2_input_cursor_update_stop(input);
-
eina_stringshare_replace(&input->cursor.name, cursor);
if (!cursor) eina_stringshare_replace(&input->cursor.name, "left_ptr");
}
void
-_ecore_wl2_input_cursor_update_stop(Ecore_Wl2_Input *input)
-{
- if (input->cursor.frame_cb)
- {
- wl_callback_destroy(input->cursor.frame_cb);
- input->cursor.frame_cb = NULL;
- }
-}
-
-void
_ecore_wl2_input_window_remove(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window)
{
Ecore_Wl2_Input_Devices *devices;
const char *name;
unsigned int size;
struct wl_surface *surface;
- struct wl_callback *frame_cb;
int hot_x, hot_y;
} cursor;
void _ecore_wl2_input_cursor_set(Ecore_Wl2_Input *input, const char *cursor);
Eina_Bool _ecore_wl2_input_cursor_update(void *data);
-void _ecore_wl2_input_cursor_update_stop(Ecore_Wl2_Input *input);
void _ecore_wl2_input_window_remove(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window);
void _ecore_wl2_dnd_add(Ecore_Wl2_Input *input, struct wl_data_offer *offer);
input = ecore_wl2_window_input_get(window);
if (!input) return;
- _ecore_wl2_input_cursor_update_stop(input);
-
input->cursor.surface = surface;
input->cursor.hot_x = hot_x;
input->cursor.hot_y = hot_y;