diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-07-31 16:09:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-08-07 09:39:56 +1000 |
commit | cb306a8f174bec9ded95191b91797f59250e6808 (patch) | |
tree | 895399a96e9c374f08c38528738be93f9a7d3c11 /os/utils.c | |
parent | 4a6f42dda00ba3b5616f8a86f0d4c9a652c7d9d4 (diff) |
dix: make sure the mask is set for emulated scroll events (#52508)
If a device has smooth scrolling axes, but submits scroll button events, we
convert those to motion events and update the valuators. For legacy button
events, the valuator mask is likely unset though, causing
add_to_scroll_valuator() to return early, leaving us with an empty mask.
That again skipped the rest of the code and no events were generated.
Fix it by making sure that the scroll valuator in the mask is at least
initialized to 0.
Broke evdev wheel emulation, introduced by
54476b5e4461ff523e935961affabcf0de12c556.
X.Org Bug 52508 <http://bugs.freedesktop.org/show_bug.cgi?id=52508>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'os/utils.c')
0 files changed, 0 insertions, 0 deletions