emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9c6392c: Fix previous change in w32fns.c


From: Eli Zaretskii
Subject: master 9c6392c: Fix previous change in w32fns.c
Date: Mon, 13 Apr 2020 11:32:35 -0400 (EDT)

branch: master
commit 9c6392c35891a869a08c25d4195c395fd49af82a
Author: Albert <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix previous change in w32fns.c
    
    * src/w32fns.c (w32_msg_pump): Simplify by not calling
    ImmGetOpenStatus.
    (Fw32_get_ime_open_status): Fix a typo.
---
 src/w32fns.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/w32fns.c b/src/w32fns.c
index dddf3dc..4f7cbed 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3459,10 +3459,7 @@ w32_msg_pump (deferred_msg * msg_buf)
                if (!context)
                  break;
 
-               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);
+               set_ime_open_status_fn (context, msg.wParam != 0);
                release_ime_context_fn (focus_window, context);
                break;
              }
@@ -10261,7 +10258,7 @@ This function returns non-nil if the IME is active, 
otherwise nil.  */)
     {
       HWND current_window = FRAME_W32_WINDOW (sf);
       HIMC context = get_ime_context_fn (current_window);
-      if (!context)
+      if (context)
        {
          BOOL retval = get_ime_open_status_fn (context);
          release_ime_context_fn (current_window, context);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]