diff options
| author | Po Lu | 2022-03-08 18:31:12 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-08 18:33:23 +0800 |
| commit | bbbb47704f6c7e56a96983976fbb0ab1acca652f (patch) | |
| tree | 5800812ed91c501fbb319cd7aab0fcf650387010 /src | |
| parent | d0d7765f236fe7f58e87342628f2491ee2d26195 (diff) | |
| download | emacs-bbbb47704f6c7e56a96983976fbb0ab1acca652f.tar.gz emacs-bbbb47704f6c7e56a96983976fbb0ab1acca652f.zip | |
Fix detection of modifier keys on XInput 2
* src/xterm.c (handle_one_xevent): Fix iteration over sets of
modifiers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index fdecca3bcdb..72c7c05d893 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12740,7 +12740,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 12740 | { | 12740 | { |
| 12741 | for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++) | 12741 | for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++) |
| 12742 | { | 12742 | { |
| 12743 | if (xkey.keycode == dpyinfo->modmap->modifiermap[xev->detail]) | 12743 | if (xev->detail == dpyinfo->modmap->modifiermap[i]) |
| 12744 | goto xi_done_keysym; | 12744 | goto xi_done_keysym; |
| 12745 | } | 12745 | } |
| 12746 | } | 12746 | } |