summaryrefslogtreecommitdiff
path: root/src/keymap.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-02-08 13:21:27 +0200
committerRan Benita <ran234@gmail.com>2014-04-19 16:23:04 +0300
commitedc0aef57dd633b504581d2c6e4bee9fe6d3acbf (patch)
tree60f2f1dd4493cec4d1b028d6f37320b2342ea6be /src/keymap.c
parentca3170ad3813389a3325513130c37e8038fa02f9 (diff)
downloadxorg-lib-libxkbcommon-edc0aef57dd633b504581d2c6e4bee9fe6d3acbf.tar.gz
text: take xkb_mod_set instead of the entire keymap
The modifier printing functions only need the modifier information, they don't care about keys or leds, etc. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index fba8b18..678bd01 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -291,7 +291,7 @@ xkb_keymap_mod_get_index(struct xkb_keymap *keymap, const char *name)
if (atom == XKB_ATOM_NONE)
return XKB_MOD_INVALID;
- return XkbModNameToIndex(keymap, atom, MOD_BOTH);
+ return XkbModNameToIndex(&keymap->mods, atom, MOD_BOTH);
}
/**