diff options
author | Ran Benita <ran234@gmail.com> | 2012-08-31 19:26:51 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-09-03 10:31:13 +0300 |
commit | 7ae0c6bac4759e9b56c4a5115c321b66012ce9dc (patch) | |
tree | 9e7baeedcd22c0c33c3f89dc2abafb477a68c012 /src/text.c | |
parent | 1a9968839eb6e1778616c33079fbee647a7ad087 (diff) | |
download | xorg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |