diff options
author | Ran Benita <ran234@gmail.com> | 2012-08-27 21:31:18 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-09-01 10:59:47 +0300 |
commit | 9de067aad4e8b0d928b7674f90fb4ecda737be33 (patch) | |
tree | ea1d7d8125ad9a7cf476c1204482c3895007f99d /test | |
parent | 7f75502f1844831a330b06c9ba0639465ff36bdf (diff) | |
download | libxkbcommon-9de067aad4e8b0d928b7674f90fb4ecda737be33.tar.gz libxkbcommon-9de067aad4e8b0d928b7674f90fb4ecda737be33.tar.bz2 libxkbcommon-9de067aad4e8b0d928b7674f90fb4ecda737be33.zip |
compat: ignore "group" (compatibility) statements
Group compatibility statements are like the following:
group 3 = AltGr;
This currently results in:
keymap->groups[2].mask = <real mod mapped from AltGr vmod>
And we don't do any thing with this value later. The reason it exists in
XKB is to support non-XKB clients (i.e. XKB support disabled entirely in
the server), which do not know the concept of "group", and use some
modifier to distinguish between the first and second keyboard layouts
(usually with the AltGr key). We don't care about all of that, so we can
forget about it.
One artifact of this removal is that xkb_map_num_groups no longer
works, because it counted through keymap->groups (this wasn't entirely
correct BTW). Instead we add a new num_groups member to the keymap,
which just hold the maximum among the xkb_key's num_groups. This also
means we don't have to compute anything just to get the number of
groups.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/data/keymaps/stringcomp.data | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/data/keymaps/stringcomp.data b/test/data/keymaps/stringcomp.data index 110cece..42ff170 100644 --- a/test/data/keymaps/stringcomp.data +++ b/test/data/keymaps/stringcomp.data @@ -1050,9 +1050,6 @@ xkb_keymap { interpret Any+AnyOf(all) { action= SetMods(modifiers=modMapMods,clearLocks); }; - group 2 = AltGr; - group 3 = AltGr; - group 4 = AltGr; indicator "Caps Lock" { whichModState= locked; modifiers= Lock; |