xserver/dix
Peter Hutterer f0823a057e 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
54476b5e44.

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>
(cherry picked from commit cb306a8f17)
2012-08-19 08:48:09 -07:00
..
.gitignore dix and os: gitignore dix.O and os.O 2011-09-23 17:14:47 -07:00
atom.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
buildatoms XFree86 4.3.0.1 2003-11-14 16:49:22 +00:00
BuiltInAtoms R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
colormap.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
cursor.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
devices.c AllocDevicePair: Ensure XKB privates are initialised 2012-08-01 18:09:12 -07:00
dispatch.c dix: indentation fix 2012-05-10 00:50:34 -07:00
dispatch.h Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
dixfonts.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
dixutils.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
enterleave.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
enterleave.h Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
eventconvert.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
events.c Fix some overly indented/poorly line wrapped comments in dix/events.c 2012-08-01 17:15:21 -07:00
extension.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
ffs.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
gc.c Fix up formatting of initializers for arrays of structs 2012-08-19 08:45:55 -07:00
getevents.c dix: make sure the mask is set for emulated scroll events (#52508) 2012-08-19 08:48:09 -07:00
globals.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
glyphcurs.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
grabs.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
initatoms.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
inpututils.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
main.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
Makefile.am input: add a TouchClassRec to the devices 2011-12-19 09:08:36 +10:00
pixmap.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
privates.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
property.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
protocol.txt Add DRI2 requests to protocol.txt 2009-08-28 23:29:05 -04:00
ptrveloc.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
region.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
registry.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
resource.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
selection.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
swaprep.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
swapreq.c Indentation: Change '& stuff' to '&stuff' 2012-03-27 11:50:43 -07:00
tables.c Make indentation of dix/tables.c much more consistent and readable 2012-08-19 08:46:11 -07:00
touch.c dix: fix dereference before null check 2012-08-01 17:38:28 -07:00
window.c Introduce a consistent coding style 2012-03-27 11:50:40 -07:00
Xserver-dtrace.h.in Sun's copyrights now belong to Oracle 2010-12-07 11:10:35 -08:00
Xserver.d Sun's copyrights now belong to Oracle 2010-12-07 11:10:35 -08:00