Revert "kdrive: don't post motion event if there was no motion. #16179"
Just because it compiles on my machine doesn't make it right. Needs backported
patch from http://bugs.freedesktop.org/show_bug.cgi?id=16179.
This reverts commit a08ea64ded
.
This commit is contained in:
parent
a08ea64ded
commit
a75cbabc25
|
@ -2078,7 +2078,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;
|
||||
|
@ -2109,15 +2109,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 (x != pi->dixdev->last.valuators[0] ||
|
||||
y != pi->dixdev->last.valuators[1])
|
||||
dixflags = POINTER_ABSOLUTE;
|
||||
dixflags = POINTER_RELATIVE & POINTER_ACCELERATE;
|
||||
else
|
||||
dixflags = POINTER_ABSOLUTE;
|
||||
|
||||
if (dixflags)
|
||||
_KdEnqueuePointerEvent(pi, MotionNotify, x, y, z, 0, dixflags, FALSE);
|
||||
_KdEnqueuePointerEvent(pi, MotionNotify, x, y, z, 0, dixflags, FALSE);
|
||||
|
||||
buttons = flags;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user