if (!input_method) return;
- resource = wl_resource_create(client, &wl_input_method_interface, 1, id);
- if (EINA_UNLIKELY(!resource))
- return;
-
if (input_method->resource)
_e_text_input_method_cb_unbind(input_method->resource);
return;
}
+ resource = wl_resource_create(client, &wl_input_method_interface, 1, id);
+ if (EINA_UNLIKELY(!resource))
+ return;
+
input_method->resource = resource;
wl_resource_set_implementation(resource, NULL, input_method,