emacs-diffs
[Top][All Lists]
Advanced

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

master 9c268510cf: Fix handling "C-S-u" and such when using XKB


From: Po Lu
Subject: master 9c268510cf: Fix handling "C-S-u" and such when using XKB
Date: Mon, 27 Jun 2022 21:43:33 -0400 (EDT)

branch: master
commit 9c268510cf4ce02e46d3884215a4d016914d35f0
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix handling "C-S-u" and such when using XKB
    
    * src/xterm.c (handle_one_xevent): Don't rely on XKB for
    consumed modifiers.
---
 src/xterm.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 3a64297258..d7c3bfa7af 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -17635,7 +17635,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                                            &consumed, &keysym))
                    goto done_keysym;
 
-                 modifiers &= ~consumed;
                  overflow = 0;
 
                  nbytes = XkbTranslateKeySym (dpyinfo->display, &keysym,
@@ -20791,10 +20790,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                }
 #endif
 
-#ifdef HAVE_XKB
-             mods_rtrn = 0;
-#endif
-
              x_display_set_last_user_time (dpyinfo, xev->time,
                                            xev->send_event);
              ignore_next_mouse_click_timeout = 0;
@@ -21029,12 +21024,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                        }
                    }
 
-#ifndef HAVE_XKB
                  inev.ie.modifiers = x_x_to_emacs_modifiers (dpyinfo, state);
-#else
-                 inev.ie.modifiers = x_x_to_emacs_modifiers (dpyinfo,
-                                                             state & 
~mods_rtrn);
-#endif
 
 #ifdef XK_F1
                  if (x_dnd_in_progress && keysym == XK_F1)



reply via email to

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