state: Add xkb_state_key_get_consumed_mods
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Feb 2014 23:09:00 +0000 (18:09 -0500)
committerRan Benita <ran234@gmail.com>
Sat, 22 Feb 2014 00:23:37 +0000 (02:23 +0200)
commit4fb7b06b0f91bd720603f9fdab458695c6cd8932
treec4e243dac832e174bb996da2e2cfb23abfca56dc
parent1fa7d6d3ab5b10e5b399f190245248ec50c94af7
state: Add xkb_state_key_get_consumed_mods

This retrieves the mask of consumed modifiers for a given key and state,
which is helpful for toolkits without having them to do it one modifier
at a time, or pass in 0xFFFFFFFF to xkb_state_remove_consumed_mods to
"reverse-engineer" the consumed mods.
src/state.c
test/state.c
xkbcommon/xkbcommon.h