Fix virtual modifiers mask extraction
authorRan Benita <ran234@gmail.com>
Sun, 5 Aug 2012 16:38:31 +0000 (19:38 +0300)
committerRan Benita <ran234@gmail.com>
Tue, 7 Aug 2012 10:20:37 +0000 (13:20 +0300)
commit6b75dd2dcbf469bccdfb3d4bda1b01493b787a68
treee4b8286899acb085da4088f95279672af875d565
parent796dccabe88d07c7bee8cbcf04d441a0909fa82a
Fix virtual modifiers mask extraction

The calculations were performed incorrectly in several places,
specifically shifting by 16 instead of 8 (= XkbNumModifiers) and masking
with 0xff instead of 0xffff.

More stuff that probably never worked as intended. This also makes these
more grep-able when we remove the vmods/real_mods separation.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/action.c
src/xkbcomp/compat.c
src/xkbcomp/keytypes.c
src/xkbcomp/symbols.c