summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Vigerlöf <Magnus.Vigerlof@ipbo.se>2008-02-02 22:44:31 +0100
committerMagnus Vigerlöf <Magnus.Vigerlof@ipbo.se>2008-02-05 21:12:52 +0100
commit12e532403210c15a25200ef448bfe9701735ab20 (patch)
tree7fca437629d94b6a734918f442eefb11d58b1103
parent41991fb991313202e8e6b513fe928ba14f8fcb87 (diff)
dix: Always add valuator information if present
Send valuator information for all event types, not only for MotionEvents and absolute button events.
-rw-r--r--dix/getevents.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 12cb950b2..94cbd1553 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -527,5 +527,2 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons,
deviceKeyButtonPointer *kbp = NULL;
- /* Thanks to a broken lib, we _always_ have to chase DeviceMotionNotifies
- * with DeviceValuators. */
- Bool sendValuators = (type == MotionNotify || flags & POINTER_ABSOLUTE);
DeviceIntPtr cp = inputInfo.pointer;
@@ -555,3 +552,3 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons,
/* Do we need to send a DeviceValuator event? */
- if (!coreOnly && sendValuators) {
+ if (!coreOnly && num_valuators) {
if ((((num_valuators - 1) / 6) + 1) > MAX_VALUATOR_EVENTS)
@@ -686,3 +683,3 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons,
events++;
- if (sendValuators) {
+ if (num_valuators) {
kbp->deviceid |= MORE_EVENTS;