EINA_SAFETY_ON_FALSE_RETURN_VAL(8 <= keycode, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_wl, NULL);
- EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_wl->xkb.state, NULL);
-
g_mutex_lock(&e_comp_wl->xkb.state_mutex);
+ if (!e_comp_wl->xkb.state)
+ {
+ g_mutex_unlock(&e_comp_wl->xkb.state_mutex);
+ return NULL;
+ }
+
state = e_comp_wl->xkb.state;
- g_mutex_unlock(&e_comp_wl->xkb.state_mutex);
sym = xkb_state_key_get_one_sym(state, keycode);
+ g_mutex_unlock(&e_comp_wl->xkb.state_mutex);
+
if (sym == XKB_KEY_NoSymbol)
{
snprintf(name, sizeof(name), "Keycode-%u", keycode);
e_comp_wl_input_pointer_constraint_activated_get(void)
{
return e_comp_wl->ptr_constraints.activated;
-}
\ No newline at end of file
+}