if (!(ec = wl_resource_get_user_data(resource))) return;
- EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)
+ if (ec == e_client_focused_get())
{
- if (wl_resource_get_client(res) ==
- wl_resource_get_client(ec->comp_data->surface))
- e_comp_wl->kbd.focused =
- eina_list_remove_list(e_comp_wl->kbd.focused, l);
+ EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)
+ {
+ if (wl_resource_get_client(res) ==
+ wl_resource_get_client(ec->comp_data->surface))
+ e_comp_wl->kbd.focused =
+ eina_list_remove_list(e_comp_wl->kbd.focused, l);
+ }
}
ec->comp_data->surface = NULL;