serial, state);
}
-static void
-_e_text_input_method_context_cb_reset_done(struct wl_client *client EINA_UNUSED, struct wl_resource *resource,
- uint32_t serial)
-{
- E_Input_Method_Context *context = wl_resource_get_user_data(resource);
-
- if (!context)
- {
- wl_resource_post_error(resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Input Method Context For Resource");
- return;
- }
-
- if ((context->model) && (context->model->resource))
- wl_text_input_send_reset_done(context->model->resource, serial);
-}
-
static const struct wl_input_method_context_interface _e_text_input_method_context_implementation = {
_e_text_input_method_context_cb_destroy,
_e_text_input_method_context_cb_string_commit,
_e_text_input_method_context_cb_hide_input_panel,
_e_text_input_method_context_cb_get_selection_text,
_e_text_input_method_context_cb_get_surrounding_text,
- _e_text_input_method_context_cb_filter_key_event_done,
- _e_text_input_method_context_cb_reset_done
+ _e_text_input_method_context_cb_filter_key_event_done
};
static void
dev_name, dev_class, dev_subclass);
}
-static void
-_e_text_input_cb_reset_sync(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t serial)
-{
- E_Text_Input *text_input = wl_resource_get_user_data(resource);
- E_Input_Method *input_method = NULL;
- Eina_List *l = NULL;
-
- if (!text_input)
- {
- wl_resource_post_error(resource,
- WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Text Input For Resource");
- return;
- }
-
- EINA_LIST_FOREACH(text_input->input_methods, l, input_method)
- {
- if (!input_method || !input_method->context) continue;
- if (input_method->context->resource)
- wl_input_method_context_send_reset_sync(input_method->context->resource, serial);
- }
-}
-
static void
_e_text_input_cb_get_hide_permission(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
{
_e_text_input_cb_cursor_position_set,
_e_text_input_cb_process_input_device_event,
_e_text_input_cb_filter_key_event,
- _e_text_input_cb_reset_sync,
_e_text_input_cb_get_hide_permission,
_e_text_input_cb_set_capital_mode
};