[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bbbb47704f: Fix detection of modifier keys on XInput 2
From: |
Po Lu |
Subject: |
master bbbb47704f: Fix detection of modifier keys on XInput 2 |
Date: |
Tue, 8 Mar 2022 05:35:14 -0500 (EST) |
branch: master
commit bbbb47704f6c7e56a96983976fbb0ab1acca652f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix detection of modifier keys on XInput 2
* src/xterm.c (handle_one_xevent): Fix iteration over sets of
modifiers.
---
src/xterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index fdecca3bcd..72c7c05d89 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12740,7 +12740,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
{
for (i = 0; i < 8 * dpyinfo->modmap->max_keypermod; i++)
{
- if (xkey.keycode ==
dpyinfo->modmap->modifiermap[xev->detail])
+ if (xev->detail == dpyinfo->modmap->modifiermap[i])
goto xi_done_keysym;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bbbb47704f: Fix detection of modifier keys on XInput 2,
Po Lu <=