summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_input.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index bd1e01042d..b4f1a4d48f 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -318,7 +318,7 @@ _ecore_wl_input_add(Ecore_Wl_Display *ewd, unsigned int id)
318 318
319 input->seat = 319 input->seat =
320 wl_registry_bind(ewd->wl.registry, id, &wl_seat_interface, 1); 320 wl_registry_bind(ewd->wl.registry, id, &wl_seat_interface, 1);
321 wl_list_insert(ewd->inputs.prev, &input->link); 321 ewd->inputs = eina_inlist_append(ewd->inputs, EINA_INLIST_GET(input));
322 322
323 wl_seat_add_listener(input->seat, 323 wl_seat_add_listener(input->seat,
324 &_ecore_wl_seat_listener, input); 324 &_ecore_wl_seat_listener, input);
@@ -385,7 +385,8 @@ _ecore_wl_input_del(Ecore_Wl_Input *input)
385 if (input->cursor_surface) 385 if (input->cursor_surface)
386 wl_surface_destroy(input->cursor_surface); 386 wl_surface_destroy(input->cursor_surface);
387 387
388 wl_list_remove(&input->link); 388 _ecore_wl_disp->inputs = eina_inlist_remove
389 (_ecore_wl_disp->inputs, EINA_INLIST_GET(input));
389 if (input->seat) wl_seat_destroy(input->seat); 390 if (input->seat) wl_seat_destroy(input->seat);
390 391
391 if (input->repeat.tmr) ecore_timer_del(input->repeat.tmr); 392 if (input->repeat.tmr) ecore_timer_del(input->repeat.tmr);