summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-07-29 13:17:27 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-07-29 13:17:27 +0930
commit969f1db96b03afa51dacce466320d311e5c9ce72 (patch)
tree09b8999c5a6cbae6f97ed5285b02fcf12c751e30
parenta49d811065701c5f3abb25b9e4945ce7547d0b53 (diff)
Revert "kdrive: don't post motion event if there was no motion. #16179"
This reverts commit 5903b4c749c1136d0f3e91d5e6321b08c31da4bf. And this one wasn't supposed to be pushed too.
-rw-r--r--hw/kdrive/src/kinput.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index d53a0d99a..6c247c185 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -2066,7 +2066,7 @@ KdEnqueuePointerEvent(KdPointerInfo *pi, unsigned long flags, int rx, int ry,
int (*matrix)[3] = kdPointerMatrix.matrix;
unsigned long button;
int n;
- int dixflags = 0;
+ int dixflags;
if (!pi)
return;
@@ -2097,15 +2097,11 @@ KdEnqueuePointerEvent(KdPointerInfo *pi, unsigned long flags, int rx, int ry,
z = rz;
if (flags & KD_MOUSE_DELTA)
- {
- if (x || y || z)
- dixflags = POINTER_RELATIVE | POINTER_ACCELERATE;
- } else if ((pi->dixdev->valuator) && (x != pi->dixdev->valuator->lastx ||
- y != pi->dixdev->valuator->lasty))
- dixflags = POINTER_ABSOLUTE;
-
- if (dixflags)
- _KdEnqueuePointerEvent(pi, MotionNotify, x, y, z, 0, dixflags, FALSE);
+ dixflags = POINTER_RELATIVE & POINTER_ACCELERATE;
+ else
+ dixflags = POINTER_ABSOLUTE;
+
+ _KdEnqueuePointerEvent(pi, MotionNotify, x, y, z, 0, dixflags, FALSE);
buttons = flags;