summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-08-31 19:26:51 +0300
committerRan Benita <ran234@gmail.com>2012-09-03 10:31:13 +0300
commit7ae0c6bac4759e9b56c4a5115c321b66012ce9dc (patch)
tree9e7baeedcd22c0c33c3f89dc2abafb477a68c012 /src/text.c
parent1a9968839eb6e1778616c33079fbee647a7ad087 (diff)
downloadxorg-lib-libxkbcommon-7ae0c6bac4759e9b56c4a5115c321b66012ce9dc.tar.gz
Convert rest of names in xkb_keymap back to atoms
These were kept as atoms, but since the keymap was exposed in the API, we converted them to strings; no the keymap is no longer exposed, so we can go back to atoms. They make the keymap smaller (at least on 64-bit machines) and the comparisons faster. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 12d90c4..38c2322 100644
--- a/src/text.c
+++ b/src/text.c
@@ -62,7 +62,7 @@ VModIndexText(struct xkb_keymap *keymap, xkb_mod_index_t ndx)
if (ndx >= XkbNumVirtualMods)
tmp = "illegal";
else
- tmp = keymap->vmod_names[ndx];
+ tmp = xkb_atom_text(keymap->ctx, keymap->vmod_names[ndx]);
if (!tmp) {
snprintf(buf, sizeof(buf) - 1, "%d", ndx);