libxkbcommon/test
Ran Benita 67b03cea0b state: correctly wrap state->locked_group and ->group
These values weren't wrapped before, which caused group_index_is_active
to stop working after a few group switches.

Also, the current group-wrapping function didn't take into consideration
actions such as LockGroup=-1, which need to wrap around, etc.
xkb_layout_index_t is unsigned, but it was used to hold possibly
negative values (e.g. locked_group is 0 and gets a -1 action).

This group wrapping function should now act like the XkbAdjustGroup
function from xserver, and at least ./test/interactive doesn't bring up
any problems with group switching any more.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-09-24 09:08:53 +10:00
..
data keycodes: ignore explicit minimum/maximum statements 2012-09-15 02:09:34 +03: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 Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
interactive.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10: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 Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
print-compiled-keymap.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
rmlvo-to-kccgst.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
rules-file.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
rulescomp.c Don't choke on RMLVO layout string with holes 2012-09-24 09:08:53 +10:00
state.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
stringcomp.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
test.h Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00