state: add GTK consumed modifiers mode
authorRan Benita <ran234@gmail.com>
Sat, 27 Feb 2016 20:31:16 +0000 (22:31 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 31 Oct 2016 10:52:28 +0000 (12:52 +0200)
commitbabc9e0c30918d3e12dea9e2e47b6c1c9c6cc1fb
treebb531bfd739d6f0d0f0c7f1ec263c95b682a5dbb
parenta0a41332cc3811370b4f9d46528b7a590846e289
state: add GTK consumed modifiers mode

This is more or less what is implemented here:
https://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkkeys-x11.c?h=3.19.10#n1131

The implementation here is more technically correct but should provide
the same results.

Try it out with ./test/interactive-evdev -g (modifiers prefixed with "-"
are consumed).

https://bugzilla.gnome.org/show_bug.cgi?id=754110
https://github.com/xkbcommon/libxkbcommon/issues/17

Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c
test/interactive-evdev.c
test/state.c
xkbcommon/xkbcommon.h