summaryrefslogtreecommitdiff
path: root/xkb/xkbtext.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-04-25 19:47:16 +0300
committerDaniel Stone <daniel@fooishbar.org>2009-01-22 15:08:57 +1100
commit61c508fa78aa08ea2666fde950fbafad95d65056 (patch)
tree0a63921127f1ce11c6842d3497c12f3ca4a4953c /xkb/xkbtext.c
parent4f3078df2acf07364a17f738bc5c32f9a5962723 (diff)
XKB: Sanitise vmods in actions
Turn vmods from two unsigned chars into one int. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbtext.c')
-rw-r--r--xkb/xkbtext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c
index f9bfae581..213dbb7aa 100644
--- a/xkb/xkbtext.c
+++ b/xkb/xkbtext.c
@@ -678,7 +678,7 @@ XkbModAction * act;
unsigned tmp;
act= &action->mods;
- tmp= XkbModActionVMods(act);
+ tmp= act->vmods;
TryCopyStr(buf,"modifiers=",sz);
if (act->flags&XkbSA_UseModMapMods)
TryCopyStr(buf,"modMapMods",sz);
@@ -818,7 +818,7 @@ char tbuf[64];
}
else {
unsigned tmp;
- tmp= XkbModActionVMods(act);
+ tmp= act->vmods;
TryCopyStr(buf,"modifiers=",sz);
if (act->flags&XkbSA_UseModMapMods)
TryCopyStr(buf,"modMapMods",sz);