mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Avoid infinite recursion in the ime input module
This commit is contained in:
parent
c3f3a82db9
commit
352c7f5120
@ -354,11 +354,14 @@ gtk_im_context_ime_reset (GtkIMContext *context)
|
|||||||
if (!himc)
|
if (!himc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (context_ime->preediting && ImmGetOpenStatus (himc))
|
if (context_ime->preediting)
|
||||||
|
{
|
||||||
|
if (ImmGetOpenStatus (himc))
|
||||||
ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
|
ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
|
||||||
|
|
||||||
context_ime->preediting = FALSE;
|
context_ime->preediting = FALSE;
|
||||||
g_signal_emit_by_name (context, "preedit-changed");
|
g_signal_emit_by_name (context, "preedit-changed");
|
||||||
|
}
|
||||||
|
|
||||||
ImmReleaseContext (hwnd, himc);
|
ImmReleaseContext (hwnd, himc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user