if (context_scim->impl->input_resource == input_res)
return;
+#if ENABLE_REMOTE_INPUT
if (context_scim->impl->input_resource != input_res && input_res != INPUT_RESOURCE_NONE)
g_info_manager->remoteinput_callback_input_resource (input_res);
+#endif
if (context_scim->impl->input_resource == INPUT_RESOURCE_REMOTE && input_res == INPUT_RESOURCE_LOCAL) {
WideString wstr = context_scim->impl->preedit_string;
g_info_manager->get_active_helper_option (WAYLAND_MODULE_CLIENT_ID, _active_helper_option);
+#if ENABLE_REMOTE_INPUT
g_info_manager->remoteinput_callback_focus_in ();
+#endif
context_scim->impl->init_remote_entry_metadata = false;
context_scim->impl->init_remote_surrounding_text = false;
_focused_ic = 0;
+#if ENABLE_REMOTE_INPUT
g_info_manager->remoteinput_callback_focus_out ();
+#endif
context_scim->impl->init_remote_entry_metadata = true;
context_scim->impl->init_remote_surrounding_text = true;
context_scim->impl->surrounding_text = utf8_mbstowcs (String (text));
context_scim->impl->cursor_pos = cursor;
+#if ENABLE_REMOTE_INPUT
String _text(text);
g_info_manager->remoteinput_callback_surrounding_text (_text, context_scim->impl->cursor_pos);
+#endif
context_scim->impl->init_remote_surrounding_text = true;
}
context_scim->impl->autocapital_type = type;
context_scim->impl->return_key_disabled = return_key_disabled;
+#if ENABLE_REMOTE_INPUT
g_info_manager->remoteinput_callback_entry_metadata (context_scim->impl->input_hint, context_scim->impl->panel_layout,
context_scim->impl->variation, context_scim->impl->autocapital_type, context_scim->impl->return_key_disabled);
+#endif
context_scim->impl->init_remote_entry_metadata = true;