ecore_wl2: Remove the rest of the cursor frame callback
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 4 Jan 2017 16:33:34 +0000 (10:33 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 5 Jan 2017 19:40:31 +0000 (13:40 -0600)
Oops, I made a clean spot, now I need to clean up the rest of this.

ref 641dfab516b8de1cf27ca07671ff73de6c8d32bf

src/lib/ecore_wl2/ecore_wl2_input.c
src/lib/ecore_wl2/ecore_wl2_private.h
src/lib/ecore_wl2/ecore_wl2_window.c

index 63ee07d..c2fbe48 100644 (file)
@@ -1459,8 +1459,6 @@ _ecore_wl2_input_del(Ecore_Wl2_Input *input)
 
    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)
@@ -1498,23 +1496,11 @@ _ecore_wl2_input_del(Ecore_Wl2_Input *input)
 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;
index 8486647..56a8c0c 100644 (file)
@@ -360,7 +360,6 @@ struct _Ecore_Wl2_Input
         const char *name;
         unsigned int size;
         struct wl_surface *surface;
-        struct wl_callback *frame_cb;
         int hot_x, hot_y;
      } cursor;
 
@@ -455,7 +454,6 @@ void _ecore_wl2_input_grab(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, uns
 
 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);
index 33e6c02..2314b78 100644 (file)
@@ -1240,8 +1240,6 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surfac
    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;