summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2012-10-30 18:21:56 +0200
committerRan Benita <ran234@gmail.com>2012-10-30 18:25:08 +0200
commit998c957a3c7c861093f3f71f34989c258ed3073b (patch)
treedea5dd7d7c1b6e784584f89edadf1f9b76d3e456 /src/text.c
parent860fb171a925de7efda70d618cf2fec6a98f0869 (diff)
downloadlibxkbcommon-998c957a3c7c861093f3f71f34989c258ed3073b.tar.gz
libxkbcommon-998c957a3c7c861093f3f71f34989c258ed3073b.tar.bz2
libxkbcommon-998c957a3c7c861093f3f71f34989c258ed3073b.zip
action: don't allow private actions with a known type
Some obscure bug having to do with Private actions; see the comments. This was prompted by: https://bugs.freedesktop.org/show_bug.cgi?id=56491 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 bb56b12..8edc0e3 100644
--- a/src/text.c
+++ b/src/text.c
@@ -279,7 +279,7 @@ ModNameToIndex(const struct xkb_keymap *keymap, xkb_atom_t name,
}
const char *
-ActionTypeText(unsigned type)
+ActionTypeText(enum xkb_action_type type)
{
const char *name = LookupValue(actionTypeNames, type);
return name ? name : "Private";