xkb: fix group wrapping
authorRan Benita <ran234@gmail.com>
Thu, 29 Dec 2011 19:46:56 +0000 (21:46 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 31 Dec 2011 15:29:58 +0000 (16:29 +0100)
commitbb499f751309fc21306cf97a15a88e548d52636b
treef25b1ec82a4c8f70cef94fd0ed56b785490d13c6
parent83b95f643f61e9f112d45cb6cb15989c09d80db5
xkb: fix group wrapping

- Use the number of groups we actually have instead of the maximum
  number of groups, when wrapping according to group_wrap control.

- Be careful with negative relative group actions. The group fields of
  xkb_state are all unsigned (and have a weird FIXME..), so don't use
  them directly.

- Add the grp:ctrl_shift_toggle option to the rmlvo set to also test
  locking the previous group (i.e. a negative relative group action).

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/input-xkb.c
src/input.c