[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master de863f70aa: Remove workaround for some input method problems
From: |
Po Lu |
Subject: |
master de863f70aa: Remove workaround for some input method problems |
Date: |
Wed, 27 Jul 2022 01:03:49 -0400 (EDT) |
branch: master
commit de863f70aa905d3a7feaedb58b65bd7f9776853b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Remove workaround for some input method problems
* src/xterm.c (handle_one_xevent): Remove modifier key
workaround for some input method problems, since they cause more
problems than they fix. (bug#56782)
---
src/xterm.c | 44 +-------------------------------------------
1 file changed, 1 insertion(+), 43 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 6f8291b494..48e9a174fa 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -17756,7 +17756,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
/* `xkey' will be modified, but it's not important to modify
`event' itself. */
XKeyEvent xkey = event->xkey;
- int i;
+
#ifdef HAVE_XINPUT2
Time pending_keystroke_time;
struct xi_device_t *source;
@@ -17806,27 +17806,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
if (modifiers & dpyinfo->meta_mod_mask)
memset (&compose_status, 0, sizeof (compose_status));
-#ifdef HAVE_XKB
- if (dpyinfo->xkb_desc)
- {
- XkbDescRec *rec = dpyinfo->xkb_desc;
-
- if (rec->map->modmap && rec->map->modmap[xkey.keycode])
- goto done_keysym;
- }
- else
-#endif
- {
- if (dpyinfo->modmap)
- {
- for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++)
- {
- if (xkey.keycode == dpyinfo->modmap->modifiermap[i])
- goto done_keysym;
- }
- }
- }
-
#ifdef HAVE_X_I18N
if (FRAME_XIC (f))
{
@@ -21160,27 +21139,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
state |= x_emacs_to_x_modifiers (dpyinfo,
extra_keyboard_modifiers);
-#ifdef HAVE_XKB
- if (dpyinfo->xkb_desc)
- {
- XkbDescRec *rec = dpyinfo->xkb_desc;
-
- if (rec->map->modmap && rec->map->modmap[xev->detail])
- goto xi_done_keysym;
- }
- else
-#endif
- {
- if (dpyinfo->modmap)
- {
- for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++)
- {
- if (xev->detail == dpyinfo->modmap->modifiermap[i])
- goto xi_done_keysym;
- }
- }
- }
-
#ifdef HAVE_XKB
if (dpyinfo->xkb_desc)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master de863f70aa: Remove workaround for some input method problems,
Po Lu <=