From: Po Lu Date: Mon, 24 Jan 2022 02:21:24 +0000 (+0800) Subject: Get rid of compose status on XI2 X-Git-Tag: emacs-29.0.90~2825 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3a7b158ffd8d468eb92de1de6418b3831f10142b;p=emacs.git Get rid of compose status on XI2 * src/xterm.c (handle_one_xevent): Stop assuming compose processing will occur on XI2. --- diff --git a/src/xterm.c b/src/xterm.c index bf606b1aa42..cc0e1a4485d 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); } }