diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-04-25 19:54:29 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2009-01-22 15:08:57 +1100 |
commit | feb757f384382c7782ceac55f99d54c7caadbd9d (patch) | |
tree | 550c2383f9e2dd668d05495f20aea02b2e1ecaf8 /xkb/xkbActions.c | |
parent | b5f49382fe48f0a762d9a15fb10a7d7e1183fc8d (diff) |
XKB: Sanitise vmods for redirected keys
Turn two unsigned chars into one unsigned int for both vmods and the
vmod mask. As a bonus, remove broken unused accessor macro for setting
the vmods.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbActions.c')
-rw-r--r-- | xkb/xkbActions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c index 4eb6b0bf8..9a138b0be 100644 --- a/xkb/xkbActions.c +++ b/xkb/xkbActions.c @@ -833,8 +833,8 @@ ProcessInputProc backupproc; ev.u.u.type = KeyPress; ev.u.u.detail = pAction->redirect.new_key; - mask= XkbSARedirectVModsMask(&pAction->redirect); - mods= XkbSARedirectVMods(&pAction->redirect); + mask= pAction->redirect.vmods_mask; + mods= pAction->redirect.vmods; if (mask) XkbVirtualModsToReal(xkbi->desc,mask,&mask); if (mods) XkbVirtualModsToReal(xkbi->desc,mods,&mods); mask|= pAction->redirect.mods_mask; @@ -865,8 +865,8 @@ ProcessInputProc backupproc; ev.u.u.type = KeyRelease; ev.u.u.detail = filter->upAction.redirect.new_key; - mask= XkbSARedirectVModsMask(&filter->upAction.redirect); - mods= XkbSARedirectVMods(&filter->upAction.redirect); + mask= filter->upAction.redirect.vmods_mask; + mods= filter->upAction.redirect.vmods; if (mask) XkbVirtualModsToReal(xkbi->desc,mask,&mask); if (mods) XkbVirtualModsToReal(xkbi->desc,mods,&mods); mask|= filter->upAction.redirect.mods_mask; |