There is the possibility to use the wrong g_text_input value even if it was deactivated.
When input_method is unbinded or input_method_context is created temporarily to send input_panel_hide event,
the g_text_input value is not initialized as null.
This cause that the wrong g_text_input value is used in the other function.
Change-Id: I088fa219e5632748451c326790d10d3f1c62401a
static void
_e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method, Eina_Bool need_focus_in)
{
+ if (text_input == g_text_input)
+ {
+ g_text_input = NULL;
+ g_client = NULL;
+ }
+
if (input_method->input == text_input)
{
if ((input_method->context) && (input_method->resource))