Commit 352c7f51 authored by Matthias Clasen's avatar Matthias Clasen

Avoid infinite recursion in the ime input module

parent c3f3a82d
......@@ -354,11 +354,14 @@ gtk_im_context_ime_reset (GtkIMContext *context)
if (!himc)
return;
if (context_ime->preediting && ImmGetOpenStatus (himc))
ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
if (context_ime->preediting)
{
if (ImmGetOpenStatus (himc))
ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
context_ime->preediting = FALSE;
g_signal_emit_by_name (context, "preedit-changed");
context_ime->preediting = FALSE;
g_signal_emit_by_name (context, "preedit-changed");
}
ImmReleaseContext (hwnd, himc);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment