Use e_client_from_surface_resource() to get a E_Client instance from a
surface resource instead of using wl_resource_get_user_data(). The user
data of wl_resource for surface is no longer a E_Client instance.
Change-Id: I65887eeb0912e3e87f7a77fd0ef488a4b071afef
{
if (key_node_data)
{
- if (ec_top == wl_resource_get_user_data(key_node_data->surface))
+ if (ec_top == e_client_from_surface_resource(key_node_data->surface))
{
krt->HardKeys[arr_idx].top_ptr = eina_list_promote_list(krt->HardKeys[arr_idx].top_ptr, l);
KLDBG("Move a client(e_client: %p, wl_surface: %p) to first index of list(key: %d)",
EINA_LIST_FOREACH_SAFE(krt->HardKeys[key].top_ptr, l, l_next, key_node_data)
{
if (!key_node_data) continue;
- if ((ec_top->visible) && (ec_top == wl_resource_get_user_data(key_node_data->surface)))
+ if ((ec_top->visible) && (ec_top == e_client_from_surface_resource(key_node_data->surface)))
{
delivery_mode = TIZEN_KEYROUTER_MODE_TOPMOST;
goto finish;