summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBodo Graumann <mail@bodograumann.de>2011-10-10 16:40:52 +0200
committerDaniel Stone <daniel@fooishbar.org>2011-10-11 19:06:38 +0100
commit50e15379331c436851abb194251cde96999e67b3 (patch)
treef8e76b1734be4867fead79bf3def44adfa607a3f
parentb5a108624331fabf393223c0891914cc54d4caf4 (diff)
libX11: Fixing modifier key range in Xutil.h (Bug #21910)
IsModifierKey, defined in include/X11/Xutil.h, is a macro determining, which keys are regarded as modifiers. The constants ISO_Level5_Shift, ISO_Level5_Latch and ISO_Level5_Lock where excluded previously, leaving some Neo2 modifiers functionless in combination with compose. This patch adjusts the range to include the correct, full range of modifier constants. Neo2 Bug 277 <http://wiki.neo-layout.org/ticket/277> X.Org Bug 21910 <http://bugs.freedesktop.org/show_bug.cgi?id=21910> Signed-off-by: Bodo Graumann <mail@bodograumann.de> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--include/X11/Xutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/Xutil.h b/include/X11/Xutil.h
index 702823f5..8cab50e7 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