[PATCH] Recognise ISO_Level5-keysyms as modifiers in IsModifierKey #21910.
Andreas Wettstein
wettstein509 at solnet.ch
Sun Aug 7 05:30:32 PDT 2011
IsModifierKey macro did not regecognise ISO_Level5_Shift,
ISO_Level5_Latch, and ISO_Level5_Lock as modifiers. See bug
21910, https://bugs.freedesktop.org/show_bug.cgi?id=21910
Signed-off-by: Andreas Wettstein <wettstein509 at solnet.ch>
---
include/X11/Xutil.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/X11/Xutil.h b/include/X11/Xutil.h
index 702823f..8cab50e 100644
--- a/include/X11/Xutil.h
+++ b/include/X11/Xutil.h
@@ -250,7 +250,7 @@ typedef struct _XComposeStatus {
#define IsModifierKey(keysym) \
((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \
|| (((KeySym)(keysym) >= XK_ISO_Lock) && \
- ((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) \
+ ((KeySym)(keysym) <= XK_ISO_Level5_Lock)) \
|| ((KeySym)(keysym) == XK_Mode_switch) \
|| ((KeySym)(keysym) == XK_Num_Lock))
#else
--
1.7.6
More information about the xorg-devel
mailing list