input method: Pop up the keyboard
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "eekboard/eekboard-context-service.h"
|
||||
|
||||
|
||||
void imservice_handle_text_change_cause(void *data, struct zwp_input_method_v2 *input_method) {}
|
||||
void imservice_handle_content_type(void *data, struct zwp_input_method_v2 *input_method) {}
|
||||
@ -18,18 +20,24 @@ static const struct zwp_input_method_v2_listener input_method_listener = {
|
||||
.unavailable = imservice_handle_unavailable,
|
||||
};
|
||||
|
||||
struct imservice* get_imservice(struct zwp_input_method_manager_v2 *manager,
|
||||
struct imservice* get_imservice(EekboardContextService *context,
|
||||
struct zwp_input_method_manager_v2 *manager,
|
||||
struct wl_seat *seat) {
|
||||
struct zwp_input_method_v2 *im = zwp_input_method_manager_v2_get_input_method(manager, seat);
|
||||
struct imservice *imservice = imservice_new(im);
|
||||
struct imservice *imservice = imservice_new(im, context);
|
||||
zwp_input_method_v2_add_listener(im,
|
||||
&input_method_listener, imservice);
|
||||
return imservice;
|
||||
}
|
||||
|
||||
void imservice_make_visible(struct imservice *imservice) {
|
||||
g_log("squeek", G_LOG_LEVEL_DEBUG, "Visibiling");
|
||||
void imservice_make_visible(EekboardContextService *context,
|
||||
struct zwp_input_method_v2 *im) {
|
||||
(void)im;
|
||||
eekboard_context_service_show_keyboard (context);
|
||||
}
|
||||
void imservice_try_hide(struct imservice *imservice) {
|
||||
g_log("squeek", G_LOG_LEVEL_DEBUG, "Hiding");
|
||||
|
||||
void imservice_try_hide(EekboardContextService *context,
|
||||
struct zwp_input_method_v2 *im) {
|
||||
(void)im;
|
||||
eekboard_context_service_hide_keyboard (context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user