summaryrefslogtreecommitdiff
path: root/xkbcommon
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-10-13 13:13:55 +0200
committerRan Benita <ran234@gmail.com>2012-10-13 13:13:55 +0200
commitf43b33c02fe6081bc1a04087974c52c96f6fee35 (patch)
tree0b739215eebc9fa6b32cc0ff239072a04e746e45 /xkbcommon
parent523e46f41aca7bdb05e07e44e2023c3c4ffce16b (diff)
state: make mod_index_is_consumed() return -1 on invalid input
Like all the other functions. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'xkbcommon')
-rw-r--r--xkbcommon/xkbcommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h
index 2cbf2cc..299b61c 100644
--- a/xkbcommon/xkbcommon.h
+++ b/xkbcommon/xkbcommon.h
@@ -890,8 +890,8 @@ xkb_state_mod_indices_are_active(struct xkb_state *state,
/**
* Returns 1 if the modifier specified by 'idx' is used in the
* translation of the keycode 'key' to the key symbols obtained by
- * pressing it (as in xkb_key_get_syms), given the current state.
- * Returns 0 otherwise.
+ * pressing it (as in xkb_state_key_get_syms), given the current state,
+ * 0 otherwise, or -1 if the index is invalid in the keymap.
*/
int
xkb_state_mod_index_is_consumed(struct xkb_state *state, xkb_keycode_t key,