* xterm.c (x_get_scroll_valuator_delta): Set valuator_return to
NULL if no valuator was found.
(handle_one_xevent): Assume pointer axes might've changed if no
scroll valuator was found but valuators were set when handling
motion events.
}
}
+ *valuator_return = NULL;
return DBL_MAX;
}
XIValuatorState *states;
double *values;
bool found_valuator = false;
+ bool other_valuators_found = false;
#endif
/* A fake XMotionEvent for x_note_mouse_movement. */
XMotionEvent ev;
i, *values, &val);
values++;
+ if (!val)
+ {
+ other_valuators_found = true;
+ continue;
+ }
+
if (delta != DBL_MAX)
{
if (!f)
if (source && !NILP (source->name))
inev.ie.device = source->name;
- goto XI_OTHER;
+ if (!other_valuators_found)
+ goto XI_OTHER;
+ else
+ puts ("ovf");
}
#ifdef HAVE_XWIDGETS
}