mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
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>
This commit is contained in:
parent
b5f49382fe
commit
feb757f384
4 changed files with 12 additions and 25 deletions
|
|
@ -1006,8 +1006,8 @@ unsigned vmods,vmods_mask;
|
|||
|
||||
act= &action->redirect;
|
||||
kc= act->new_key;
|
||||
vmods= XkbSARedirectVMods(act);
|
||||
vmods_mask= XkbSARedirectVModsMask(act);
|
||||
vmods= act->vmods;
|
||||
vmods_mask= act->vmods_mask;
|
||||
if (xkb && xkb->names && xkb->names->keys && (kc<=xkb->max_key_code) &&
|
||||
(xkb->names->keys[kc].name[0]!='\0')) {
|
||||
char *kn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue