forked from enlightenment/efl
ecore_imf/wayland: Fix bug language changed event is always called
This commit is contained in:
parent
b7d882515d
commit
8c1776d177
|
@ -685,18 +685,22 @@ text_input_language(void *data,
|
||||||
|
|
||||||
if (imcontext->language)
|
if (imcontext->language)
|
||||||
{
|
{
|
||||||
free(imcontext->language);
|
|
||||||
|
|
||||||
if (strcmp(imcontext->language, language) != 0)
|
if (strcmp(imcontext->language, language) != 0)
|
||||||
changed = EINA_TRUE;
|
{
|
||||||
|
changed = EINA_TRUE;
|
||||||
|
free(imcontext->language);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
changed = EINA_TRUE;
|
changed = EINA_TRUE;
|
||||||
|
|
||||||
imcontext->language = strdup(language);
|
if (changed)
|
||||||
|
{
|
||||||
|
imcontext->language = strdup(language);
|
||||||
|
|
||||||
if (imcontext->ctx && changed)
|
if (imcontext->ctx)
|
||||||
ecore_imf_context_input_panel_event_callback_call(imcontext->ctx, ECORE_IMF_INPUT_PANEL_LANGUAGE_EVENT, 0);
|
ecore_imf_context_input_panel_event_callback_call(imcontext->ctx, ECORE_IMF_INPUT_PANEL_LANGUAGE_EVENT, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue