Since there are cases an application that manually
calls input_panel_show() / hide() without considering
system's input panel policy, sometimes they are
requesting to hide input panel on focus input context that
did not explicitly requested to show in the past.
Change-Id: Ic2b2d35461111faeacc2fd8a33568c3fc47c5cf8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
if (!g_text_input || (text_input && g_show_text_input == text_input))
hide_allowed = EINA_TRUE;
- if (g_old_text_input && text_input == g_old_text_input && g_client == client)
- hide_allowed = EINA_TRUE;
+ if (g_client == client)
+ {
+ if ((g_old_text_input && (text_input == g_old_text_input)) ||
+ (g_text_input && (text_input == g_text_input)))
+ hide_allowed = EINA_TRUE;
+ }
if (hide_allowed)
{