emacs-diffs
[Top][All Lists]
Advanced

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

master 3a7b158ffd: Get rid of compose status on XI2


From: Po Lu
Subject: master 3a7b158ffd: Get rid of compose status on XI2
Date: Sun, 23 Jan 2022 21:22:33 -0500 (EST)

branch: master
commit 3a7b158ffd8d468eb92de1de6418b3831f10142b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Get rid of compose status on XI2
    
    * src/xterm.c (handle_one_xevent): Stop assuming compose
    processing will occur on XI2.
---
 src/xterm.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index bf606b1aa4..cc0e1a4485 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10759,7 +10759,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              bv.state = xev->mods.effective;
              bv.time = xev->time;
 
-             memset (&compose_status, 0, sizeof (compose_status));
              dpyinfo->last_mouse_glyph_frame = NULL;
              x_display_set_last_user_time (dpyinfo, xev->time);
 
@@ -11030,12 +11029,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                     (see above).  */
                  *finish = X_EVENT_DROP;
 #endif
-                 /* If not using XIM/XIC, and a compose sequence is in 
progress,
-                    we break here.  Otherwise, chars_matched is always 0.  */
-                 if (compose_status.chars_matched > 0 && nbytes == 0)
-                   goto XI_OTHER;
-
-                 memset (&compose_status, 0, sizeof (compose_status));
 
                  XSETFRAME (inev.ie.frame_or_window, f);
                  inev.ie.modifiers
@@ -11102,7 +11095,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                        {
                          nbytes = XLookupString (&xkey, copy_bufptr,
                                                  copy_bufsiz, &keysym,
-                                                 &compose_status);
+                                                 NULL);
                        }
                    }
 



reply via email to

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