static bool _need_wl_im_init = false;
static struct _wl_im *_wl_im_ctx = NULL;
+static bool _init_prediction_allow = false;
#define WAYLAND_MODULE_CLIENT_ID (0)
#define MAX_PREEDIT_BUFSIZE 4000
// Set prediction allow
old_hintbit = hint_copy & WL_TEXT_INPUT_CONTENT_HINT_AUTO_COMPLETION;
new_hintbit = hint & WL_TEXT_INPUT_CONTENT_HINT_AUTO_COMPLETION;
- if (old_hintbit != new_hintbit) {
+ if (old_hintbit != new_hintbit || !_init_prediction_allow) {
+ _init_prediction_allow = true;
g_info_manager->set_prediction_allow (WAYLAND_MODULE_CLIENT_ID, wsc_context_prediction_allow_get (wsc_ctx));
}
_wl_im_ctx->im_ctx = NULL;
_wl_im_ctx->need_focus_event = EINA_FALSE;
_need_wl_im_init = false;
+ _init_prediction_allow = false;
}
static void