[PATCH] Recognise ISO_Level5-keysyms as modifiers in IsModifierKey #21910.

James Cloos cloos at jhcloos.com
Sun Aug 7 13:15:43 PDT 2011


>>>>> "AW" == Andreas Wettstein <wettstein509 at solnet.ch> writes:

AW> IsModifierKey macro did not regecognise ISO_Level5_Shift,
AW> ISO_Level5_Latch, and ISO_Level5_Lock as modifiers.  See bug
AW> 21910, https://bugs.freedesktop.org/show_bug.cgi?id=21910

AW> Signed-off-by: Andreas Wettstein <wettstein509 at solnet.ch>
AW> ---
AW>  include/X11/Xutil.h |    2 +-
AW>  1 files changed, 1 insertions(+), 1 deletions(-)

AW> diff --git a/include/X11/Xutil.h b/include/X11/Xutil.h
AW> index 702823f..8cab50e 100644
AW> --- a/include/X11/Xutil.h
AW> +++ b/include/X11/Xutil.h
AW> @@ -250,7 +250,7 @@ typedef struct _XComposeStatus {
AW>  #define IsModifierKey(keysym) \
AW>    ((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \
AW>     || (((KeySym)(keysym) >= XK_ISO_Lock) && \
AW> -       ((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) \
AW> +       ((KeySym)(keysym) <= XK_ISO_Level5_Lock)) \
AW>     || ((KeySym)(keysym) == XK_Mode_switch) \
AW>     || ((KeySym)(keysym) == XK_Num_Lock))
AW>  #else
AW> -- 
AW> 1.7.6

Reviewed-by: James Cloos <cloos at jhcloos.com>

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the xorg-devel mailing list