To quote the spec:
XkbSI_AllOf
All of the bits that are on in mods must be set, but others may be
set as well.
Here "mods" refers to interp->mods. This matches xserver/libX11.
Signed-off-by: Ran Benita <ran234@gmail.com>
found = !!(interp->mods & mods);
break;
case XkbSI_AllOf:
- found = ((interp->mods & mods) == mods);
+ found = ((interp->mods & mods) == interp->mods);
break;
case XkbSI_Exactly:
found = (interp->mods == mods);