Commit 5595e3d1 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keystroke.c: Fix modifier handling

Code could not distinguish between ctrl-alt-shift and ctrl-alt. Fixes ArcticaProject/nx-libs#395
parent af5a83bb
...@@ -155,10 +155,11 @@ static Bool modifier_matches(unsigned int mask, int compare_alt_meta, unsigned i ...@@ -155,10 +155,11 @@ static Bool modifier_matches(unsigned int mask, int compare_alt_meta, unsigned i
} }
mask &= ~nxagentAltMetaMask; mask &= ~nxagentAltMetaMask;
state &= ~nxagentAltMetaMask;
} }
/* all modifiers except meta/alt have to match exactly, extra bits are evil */ /* all modifiers except meta/alt have to match exactly, extra bits are evil */
if ((mask & state) != mask) { if (mask != state) {
ret = False; ret = False;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment