From: Eli Zaretskii Date: Mon, 13 Apr 2020 13:20:14 +0000 (+0300) Subject: ; Fix last change. X-Git-Tag: emacs-28.0.90~7596 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=61da72dc2df46603a25b0cde2aea82f8f2e7faf8;p=emacs.git ; Fix last change. --- diff --git a/src/w32fns.c b/src/w32fns.c index 2d1a92be096..dddf3dc5719 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3459,8 +3459,10 @@ w32_msg_pump (deferred_msg * msg_buf) if (!context) break; - BOOL wParam = (BOOL) msg.wParam; - set_ime_open_status_fn (context, wParam); + BOOL new_status = (msg.wParam != 0); + BOOL ime_status = get_ime_open_status_fn (context); + if (new_status != ime_status) + set_ime_open_status_fn (context, new_status); release_ime_context_fn (focus_window, context); break; }