From 515ce3e4ba42605a1ee9979e8bb5acd3cf6470a3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 5 Jan 2009 15:48:45 +1000 Subject: xkb: fix typo - missing negation when checking button state. Introduced with a85f0d6b98237d8a196de624207acf1983a1859a. Reported by Thomas Jaeger. Signed-off-by: Peter Hutterer --- xkb/xkbActions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c index 6696c7649..dae35960c 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; -- cgit v1.2.3