_focused_ctx = NULL;
if (_hide_req_ctx == ctx && _hide_timer)
- _input_panel_hide(ctx, EINA_TRUE);
+ ecore_imf_context_input_panel_hide(ctx);
//
if (imcontext->language) {
if (imcontext->text_input) {
if (ecore_imf_context_input_panel_enabled_get(ctx))
- _input_panel_hide(ctx, EINA_FALSE);
+ ecore_imf_context_input_panel_hide(ctx);
wl_text_input_deactivate(imcontext->text_input,
ecore_wl_input_seat_get(imcontext->input));
{
if (type == ECORE_IMF_EVENT_MOUSE_UP) {
- if (ecore_imf_context_input_panel_enabled_get(ctx))
- show_input_panel(ctx);
+ if (ecore_imf_context_input_panel_enabled_get(ctx)) {
+ LOGD ("[Mouse-up event] ctx : %p\n", ctx);
+ if (ctx == _focused_ctx) {
+ ecore_imf_context_input_panel_show(ctx);
+ }
+ else
+ LOGE ("Can't show IME because there is no focus. ctx : %p\n", ctx);
+ }
}
return EINA_FALSE;