if (wsc_ctx->language)
wl_input_method_context_language (im_ctx, wsc_ctx->serial, wsc_ctx->language);
-
- wl_input_method_context_text_direction (im_ctx, wsc_ctx->serial, wsc_ctx->text_direction);
}
static void
if (wsc_ctx->language)
wl_input_method_context_language (im_ctx, wsc_ctx->serial, wsc_ctx->language);
- wl_input_method_context_text_direction (im_ctx, wsc_ctx->serial, wsc_ctx->text_direction);
-
isf_wsc_context_add (wsc_ctx);
wsc_ctx->context_changed = EINA_TRUE;
_wsc_im_hide_input_panel
};
-static void
-_wsc_seat_handle_capabilities(void *data, struct wl_seat *seat,
- uint32_t caps)
-{
- struct weescim *wsc = (weescim*)data;
- if (!wsc) return;
-
- if ((caps & WL_SEAT_CAPABILITY_KEYBOARD)) {
-
- } else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD)) {
-
- }
-}
-
-static const struct wl_seat_listener wsc_seat_listener = {
- _wsc_seat_handle_capabilities,
-};
-
static bool
_wsc_setup(struct weescim *wsc)
{
EINA_INLIST_FOREACH(globals, global) {
if (strcmp (global->interface, "wl_input_method") == 0)
wsc->im = (wl_input_method*)wl_registry_bind (registry, global->id, &wl_input_method_interface, 1);
- else if (strcmp (global->interface, "wl_seat") == 0)
- wsc->seat = (wl_seat*)wl_registry_bind (registry, global->id, &wl_seat_interface, 1);
}
if (wsc->im == NULL) {
return false;
}
- if (wsc->seat)
- wl_seat_add_listener(wsc->seat, &wsc_seat_listener, wsc);
- else {
- LOGW ("Couldn't get wayland seat interface\n");
- return false;
- }
-
return true;
}