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)