]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Mon, 13 Apr 2020 13:20:14 +0000 (16:20 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 13 Apr 2020 13:20:14 +0000 (16:20 +0300)
src/w32fns.c

index 2d1a92be0961b8545df69272df8bd38bec7bf4c4..dddf3dc57191d794a74a449c755d396e208971ae 100644 (file)
@@ -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;
              }