Change-Id: I0e600750d6cb9459f25b2e2dfcff8171a3d21dc5
if (!input_panel) return;
+ if (input_panel->resource)
+ _e_input_panel_unbind(input_panel->resource);
+
resource = wl_resource_create(client, &wl_input_panel_interface, 1, id);
if (!resource) return;
}
wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
- "interface object already bound");
+ "input_panel object already bound");
}
void
return;
if (input_method->resource)
+ _e_text_input_method_cb_unbind(input_method->resource);
+
+ if (input_method->resource)
{
wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
- "interface object already bound");
+ "input_method object already bound");
return;
}