return e_comp_input_key->xkb.keymap;
}
+//TODO: deprecate thie API
E_API const Eina_List *
e_comp_wl_input_kbd_resources_get()
{
- EINA_SAFETY_ON_FALSE_RETURN_VAL(e_comp_input_key, NULL);
- //TODO:
- //return e_comp_input_key->kbd.resources;
- return NULL;
+ E_Seat *seat;
+
+ seat = e_seat_current_get();
+ EINA_SAFETY_ON_FALSE_RETURN_VAL(seat, NULL);
+ return e_seat_keyboard_resources_get(seat);
}
E_API int
return e_comp_input_key->kbd.repeat_rate;
}
+//TODO: deprecate thie API
E_API void
e_comp_wl_input_kbd_resource_list_lock()
{
- EINA_SAFETY_ON_NULL_RETURN(e_comp_input_key);
- //TODO:
- //g_rec_mutex_lock(&e_comp_input_key->kbd.resources_mutex);
+ E_Seat *seat;
+
+ seat = e_seat_current_get();
+ EINA_SAFETY_ON_FALSE_RETURN(seat);
+ e_seat_keyboard_resources_lock(seat);
}
+//TODO: deprecate thie API
E_API void
e_comp_wl_input_kbd_resource_list_unlock()
{
- EINA_SAFETY_ON_NULL_RETURN(e_comp_input_key);
- //TODO:
- //g_rec_mutex_unlock(&e_comp_input_key->kbd.resources_mutex);
+ E_Seat *seat;
+
+ seat = e_seat_current_get();
+ EINA_SAFETY_ON_NULL_RETURN(seat);
+ e_seat_keyboard_resources_unlock(seat);
}