wsc->wsc_ctx->input_panel_shown_once = EINA_TRUE;
if (_TV)
- isf_wsc_context_update_remote_surrounding_text (wsc->wsc_ctx, wsc->wsc_ctx->surrounding_text, wsc->wsc_ctx->surrounding_cursor);
+ isf_wsc_context_update_remote_surrounding_text (wsc->wsc_ctx, wsc->wsc_ctx->surrounding_text ? wsc->wsc_ctx->surrounding_text : "", wsc->wsc_ctx->surrounding_cursor);
}
static void
WSCContextISF *context_scim = wsc_ctx;
+ SECURE_LOGD("text : \"%s\", cursor : %d", text, cursor);
if (!context_scim || !context_scim->impl || !text)
return;
return;
if (!context_scim->impl->init_remote_surrounding_text || strcmp (conv_text, text) != 0 || context_scim->impl->cursor_pos != cursor) {
- SECURE_LOGD("remote surrounding text : \"%s\"", text);
context_scim->impl->surrounding_text = utf8_mbstowcs (String (text));
context_scim->impl->cursor_pos = cursor;
if (_TV) {
if (context_scim->input_panel_shown_once && context_scim->impl->input_resource != INPUT_RESOURCE_REMOTE) {
+ SECURE_LOGD("remote surrounding text : \"%s\"", text);
context_scim->impl->init_remote_surrounding_text = true;
if (context_scim->impl->panel_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_PASSWORD) {
g_info_manager->remoteinput_callback_surrounding_text (String (""), 0);