From 84f5d2291c1fe92fd8358e999e909bf3aab86c98 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 8 Oct 2006 15:30:24 +0300 Subject: [PATCH] GetPointerEvents: fix relatively harmless typo Change !(cp->button || !cp->valuator) to (!cp->button || !cp->valuator). --- dix/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dix/events.c b/dix/events.c index c95a942a7..07cf03f47 100644 --- a/dix/events.c +++ b/dix/events.c @@ -4866,7 +4866,7 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons, if (type != MotionNotify && type != ButtonPress && type != ButtonRelease) return 0; - if (!pDev->button || (pDev->coreEvents && !(cp->button || !cp->valuator))) + if (!pDev->button || (pDev->coreEvents && (!cp->button || !cp->valuator))) return 0; if (pDev->coreEvents)