return;
}
- if (g_text_input == text_input)
+ if (g_show_text_input == text_input)
{
if (text_input->input_panel_visibile)
{
- if (g_client)
- _input_panel_hide(g_client, resource, EINA_TRUE);
+ _input_panel_hide(g_client, resource, EINA_TRUE);
}
- g_text_input = NULL;
- g_client = NULL;
+ g_show_text_input = NULL;
}
- if (text_input == g_show_text_input)
- g_show_text_input = NULL;
-
- if (g_text_input == NULL && text_input->input_panel_visibile)
+ if (g_text_input == text_input)
{
- _input_panel_hide(NULL, resource, EINA_TRUE);
+ g_text_input = NULL;
+ g_client = NULL;
}
EINA_LIST_FREE(text_input->input_methods, input_method)