GNOME Bugzilla – Bug 742829
Update to new libinput API for pointer_axis events
Last modified: 2015-01-16 14:52:30 UTC
Created attachment 294381 [details] [review] 0001-evdev-use-libinput-s-new-merged-scroll-events.patch The scrolling event API changes in libinput 0.8 to include all axes changes in the same event. Patch filed for review, the changes aren't on libinput master yet (trying to get all patches public first)
Review of attachment 294381 [details] [review]: Clutter indentation is 2 spaces but otherwise this looks good. libinput 0.8 is now out too so we should land this soon
*** Bug 742975 has been marked as a duplicate of this bug. ***
we'll need to bump up libinput in both jhbuild and gnome-continuous.
also, this needs a bump to the libinput version check in configure.ac.
Created attachment 294623 [details] [review] Enchanced Whot's patch to use the discrete axis value for wheel events It's basically a mirror of weston patch that does the same. http://cgit.freedesktop.org/wayland/weston/commit/?id=5dddd411d6d8587267529d0478c5dc68e9521047
Created attachment 294625 [details] [review] Enchanced Whot's patch to use the discrete axis value for wheel events Fixed minor coding style issue.
Created attachment 294626 [details] [review] Enchanced Whot's patch to use the discrete axis value for wheel events Really fixed minor coding style issue.
Review of attachment 294626 [details] [review]: thanks for the patch! looks generally good, two minor style issues. ::: clutter/evdev/clutter-device-manager-evdev.c @@ +1214,3 @@ + + axis = LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL; + if (libinput_event_pointer_has_axis (axis_event, axis)) { coding style: the curly brace needs to go on another line and indentation level, e.g.: if (condition) { statement_1; ... } @@ +1223,2 @@ + axis = LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL; + if (libinput_event_pointer_has_axis (axis_event, axis)) { coding style, same as above.
Created attachment 294628 [details] [review] Enchanced Whot's patch to use the discrete axis value for wheel events Another coding style fix as pointed out by ebassi.
Review of attachment 294628 [details] [review]: looks good.
Pushed attachment 294628 [details] [review] to master