[PATCH] Recognise ISO_Level5-keysyms as modifiers in xcb_is_modifier_key #39177
Andreas Wettstein
wettstein509 at solnet.ch
Sun Aug 7 05:33:21 PDT 2011
xcb_is_modifier_key did not regecognise ISO_Level5_Shift,
ISO_Level5_Latch, and ISO_Level5_Lock as modifiers. See bug
39177, https://bugs.freedesktop.org/show_bug.cgi?id=39177
Signed-off-by: Andreas Wettstein <wettstein509 at solnet.ch>
---
keysyms/keysyms.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/keysyms/keysyms.c b/keysyms/keysyms.c
index 3ea0e13..7584ccc 100644
--- a/keysyms/keysyms.c
+++ b/keysyms/keysyms.c
@@ -363,7 +363,7 @@ int
xcb_is_modifier_key (xcb_keysym_t keysym)
{
return (((keysym >= XK_Shift_L) && (keysym <= XK_Hyper_R)) ||
- ((keysym >= XK_ISO_Lock) && (keysym <= XK_ISO_Last_Group_Lock)) ||
+ ((keysym >= XK_ISO_Lock) && (keysym <= XK_ISO_Level5_Lock)) ||
(keysym == XK_Mode_switch) ||
(keysym == XK_Num_Lock));
}
--
1.7.6
More information about the xorg-devel
mailing list