summaryrefslogtreecommitdiff
authorPeter Hutterer <peter.hutterer@who-t.net>2009-01-05 05:48:45 (GMT)
committer Peter Hutterer <peter.hutterer@who-t.net>2009-01-08 01:45:21 (GMT)
commit515ce3e4ba42605a1ee9979e8bb5acd3cf6470a3 (patch) (side-by-side diff)
tree3d009130abdda559a0bf9e20f588af4a4739c809
parent9a313fb03153eb764aab3e9cb9988b6603541637 (diff)
downloadxserver-515ce3e4ba42605a1ee9979e8bb5acd3cf6470a3.zip
xserver-515ce3e4ba42605a1ee9979e8bb5acd3cf6470a3.tar.gz
xkb: fix typo - missing negation when checking button state.
Introduced with a85f0d6b98237d8a196de624207acf1983a1859a. Reported by Thomas Jaeger. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--xkb/xkbActions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index 6696c76..dae3596 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -1074,7 +1074,7 @@ int button;
switch (filter->upAction.type) {
case XkbSA_LockDeviceBtn:
if ((filter->upAction.devbtn.flags&XkbSA_LockNoUnlock)||
- BitIsOn(dev->button->down, button))
+ !BitIsOn(dev->button->down, button))
return 0;
XkbDDXFakeDeviceButton(dev,False,button);
break;