Don't set pEvdev->rel for mouse wheel events

This way we won't get empty MotionNotify events when the mouse wheel is
used.

Signed-off-by: Paulo Ricardo Zanoni <pzanoni@mandriva.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Paulo Ricardo Zanoni
2010-04-14 17:12:27 -03:00
committed by Peter Hutterer
parent 8eede7ea8d
commit aaf65e7bfa

View File

@@ -494,8 +494,6 @@ EvdevProcessRelativeMotionEvent(InputInfoPtr pInfo, struct input_event *ev)
/* Get the signed value, earlier kernels had this as unsigned */
value = ev->value;
pEvdev->rel = 1;
switch (ev->code) {
case REL_WHEEL:
if (value > 0)
@@ -522,6 +520,7 @@ EvdevProcessRelativeMotionEvent(InputInfoPtr pInfo, struct input_event *ev)
if (EvdevWheelEmuFilterMotion(pInfo, ev))
return;
pEvdev->rel = 1;
pEvdev->delta[ev->code] += value;
break;
}