[PATCH] Recognise ISO_Level5-keysyms as modifiers in xcb_is_modifier_key #39177

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


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

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

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

AW> diff --git a/keysyms/keysyms.c b/keysyms/keysyms.c
AW> index 3ea0e13..7584ccc 100644
AW> --- a/keysyms/keysyms.c
AW> +++ b/keysyms/keysyms.c
AW> @@ -363,7 +363,7 @@ int
AW>  xcb_is_modifier_key (xcb_keysym_t keysym)
AW>  {
AW>    return  (((keysym >= XK_Shift_L)  && (keysym <= XK_Hyper_R)) ||
AW> -	   ((keysym >= XK_ISO_Lock) && (keysym <= XK_ISO_Last_Group_Lock)) ||
AW> +	   ((keysym >= XK_ISO_Lock) && (keysym <= XK_ISO_Level5_Lock)) ||
AW>  	   (keysym == XK_Mode_switch) ||
AW>  	   (keysym == XK_Num_Lock));
AW>  }
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