From 61da72dc2df46603a25b0cde2aea82f8f2e7faf8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 13 Apr 2020 16:20:14 +0300 Subject: [PATCH] ; Fix last change. --- src/w32fns.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2