summaryrefslogtreecommitdiff
path: root/xkbcommon.map
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2016-02-27 19:06:14 +0200
committerRan Benita <ran234@gmail.com>2016-10-31 12:52:26 +0200
commita0a41332cc3811370b4f9d46528b7a590846e289 (patch)
tree7a735267fe0bea2bb7b82a5f8f0a1d89300f4654 /xkbcommon.map
parent90611719572fbac04ddf3329f5683feb3b71e681 (diff)
downloadxorg-lib-libxkbcommon-a0a41332cc3811370b4f9d46528b7a590846e289.tar.gz
state: allow different modes for calculating consumed modifiers
The current functions dealing with consumed modifiers use the traditional XKB definition of consumed modifiers (see description in the added documentation). However, for several users of the library (e.g. GTK) this definition is unsuitable or too eager. This is exacerbated by some less-than-ideal xkeyboard-config type definitions (CTRL+ALT seems to cause most grief...). So, because we - want to enable alternative interpretations, but - don't want to expose too much internal details, and - want to keep things simple for all library users, we add a high-level "mode" parameter which selects the desired interpretation. New ones can be added as long as they make some sense. All of the old consumed-modifiers functions keep using the traditional ("XKB") mode. I mark xkb_state_mod_mask_remove_consumed() and as deprecated without adding a *2 variant because I don't it is very useful (or used) in practice. Alternative modes are added in subsequent commits (this commit only adds a mode for the existing behavior). https://github.com/xkbcommon/libxkbcommon/issues/17 Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'xkbcommon.map')
-rw-r--r--xkbcommon.map6
1 files changed, 6 insertions, 0 deletions
diff --git a/xkbcommon.map b/xkbcommon.map
index ac01fcb..cc468c6 100644
--- a/xkbcommon.map
+++ b/xkbcommon.map
@@ -91,3 +91,9 @@ global:
xkb_keymap_key_get_name;
xkb_keymap_key_by_name;
} V_0.5.0;
+
+V_0.7.0 {
+global:
+ xkb_state_key_get_consumed_mods2;
+ xkb_state_mod_index_is_consumed2;
+} V_0.6.0;