GNOME Bugzilla – Bug 760637
Handle wl_pointer v5 events (frame, axis_source, axis_discrete, axis_stop)
Last modified: 2016-01-19 10:59:26 UTC
wl_pointer v5 (hot in master) provides a few extra events: - wl_pointer.frame: Meant to coalesce wayland events that logically belong together, the most immediate case being the various wl_pointer.axis* events. - wl_pointer.axis_source/discrete/stop: Are meant to provide further information than we get through wl_pointer.axis. Attaching here the patch to add support in mutter.
Created attachment 319036 [details] [review] wayland: Implement wl_pointer.axis_source/axis_stop/axis_frame emission As per the spec: - wl_pointer.axis_source determines the current source of scroll events. - wl_pointer.axis_stop determines when there's no further scroll events on the given axis. - wl_pointer.axis_discrete is emitted on "wheel" scroll sources, measured in ticks. - wl_pointer.frame is meant to coalesce events that logically belong together, e.g. axis events in this case. Co-Authored-By: Peter Hutterer <peter.hutterer@who-t.net>
Bug 760637 - Handle wl_pointer v5 events (frame, axis_source, axis_discrete, axis_stop) - NEW Pushed after corroborating with the weston patches. Attachment 319036 [details] pushed as 935d76b - wayland: Implement wl_pointer.axis_source/axis_stop/axis_frame emission
Review of attachment 319036 [details] [review]: Isn't this missing the wl_pointer_send_frame() that should come together with the wl_pointer_send_enter() in meta_wayland_pointer_create_new_resource()?
Yes indeed... pushed a couple fixups: https://git.gnome.org/browse/mutter/commit/?id=e30010b9f0854ad43bdbaf54467a7b23a6b5aca2 https://git.gnome.org/browse/mutter/commit/?id=fc0a834abbab7dbb0f9e267c72bb6f7d7e0b1c96