libxkbcommon/test
Ran Benita 1a6b1e0788 state: fix bad EFFECTIVE check in *_is_active()
This is a regression introduced in ed78fbcb30.
XKB_STATE_EFFECTIVE is just a OR of the other states, so using & here is
completely wrong. So test/state shows for example:
    dumping state for LCtrl down:
            group English (US) (0): effective depressed latched locked
            mod Control (2): depressed latched locked
    dumping state for LCtrl + RAlt down:
            group English (US) (0): effective depressed latched locked
            mod Control (2): depressed latched locked
            mod Mod1 (3): depressed latched locked
    dumping state for RAlt down:
            group English (US) (0): effective depressed latched locked
            mod Mod1 (3): depressed latched locked
    dumping state for Caps Lock:
            group English (US) (0): effective depressed latched locked
            mod Lock (1): depressed latched locked
            led Caps Lock (0): active
    dumping state for Alt-Shift-+
            group English (US) (0): effective depressed latched locked
            mod Shift (0): depressed latched locked
            mod Mod1 (3): depressed latched locked
which is bogus.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-10-06 21:41:58 +02:00
..
data parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
.gitignore test: add print-compiled-keymap tool 2012-09-19 16:56:26 +03:00
common.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
context.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
filecomp.c parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
interactive.c test/interactive: allow -k to get any absolute path 2012-09-30 14:20:16 +02:00
keyseq.c state: correctly wrap state->locked_group and ->group 2012-09-24 09:08:53 +10:00
keysym.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
log.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
print-compiled-keymap.c Add format argument to xkb_keymap_get_as_string 2012-09-24 09:13:32 +10:00
rmlvo-to-kccgst.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
rules-file.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
rulescomp.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
state.c state: fix bad EFFECTIVE check in *_is_active() 2012-10-06 21:41:58 +02:00
stringcomp.c Don't use %z printf format 2012-09-30 14:20:16 +02:00
test.h Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00