diff options
Diffstat (limited to 'console-client/xkb')
-rw-r--r-- | console-client/xkb/parser.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y index 328fa606..d6e27c79 100644 --- a/console-client/xkb/parser.y +++ b/console-client/xkb/parser.y @@ -315,7 +315,10 @@ vmods_def: /* Return the number of the virtual modifier. */ vmod: - IDENTIFIER { $$ = vmod_find ($1); } + IDENTIFIER + { if (($$ = vmod_find ($1)) != 0) + $$ = 1 << ($$ - 1); + } ; /* A single realmodifier. */ |