Change-Id: I2707af7c65cc1f38911a6c757d339d16fd8b5a40
_e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource)
{
E_Input_Panel *input_panel = wl_resource_get_user_data(resource);
- E_Client *ec = wl_resource_get_user_data(surface_resource);
+ E_Client *ec = e_client_from_surface_resource(surface_resource);
E_Input_Panel_Surface *ips = NULL;
E_Comp_Wl_Client_Data *cdata = NULL;
EINA_SAFETY_ON_NULL_GOTO(g_input_method->resource, err);
/* Store application window's E_Client* value for setting transient_for information later */
- ec = wl_resource_get_user_data(surface);
+ ec = e_client_from_surface_resource(surface);
EINA_SAFETY_ON_NULL_GOTO(ec, err);
EINA_SAFETY_ON_TRUE_GOTO(e_object_is_del(E_OBJECT(ec)), err);
client_surface_ec = ec;