GNOME Bugzilla – Bug 679986
Handle wayland pointer axis events
Last modified: 2012-09-30 10:48:03 UTC
Add implementation of pointer axis events from wl_pointer_listener interface.
Created attachment 218880 [details] [review] Patch: implement pointer axis events using GDK smooth scroll events Add implementation of wl_pointer_listener pointer axis events. For this, we convert the events to GDK smooth scroll events, so we may accept any value in the event, even when at least weston x11 still only sends standard -1/+1 values.
Adding Rob Bradford to Cc:, as he's done the merge of the new 0.9x wayland GDK backend implementation.
Patch integrated into master with a small fix. Thanks!
Hi, I submitted some patches[0][1] to wayland-devel related to this patch. Looking at the implementation in GDK/GTK+ I think it should work out of the box if the new changes are to be merged, but it could be a good idea to double check. For example the direction and passed value reported by the x11 (and drm as soon as I update it as well) compositor are inverted increased to an arbitrary delta (10.0 so far). Touchpads should report similar events as motion events. Just wanted to give a heads up about this. Jonas [0] http://lists.freedesktop.org/archives/wayland-devel/2012-September/005537.html [1] http://lists.freedesktop.org/archives/wayland-devel/2012-September/005536.html