After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679986 - Handle wayland pointer axis events
Handle wayland pointer axis events
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jose Dapena Paz
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-07-16 06:45 UTC by Jose Dapena Paz
Modified: 2012-09-30 10:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch: implement pointer axis events using GDK smooth scroll events (1.86 KB, patch)
2012-07-16 06:50 UTC, Jose Dapena Paz
none Details | Review

Description Jose Dapena Paz 2012-07-16 06:45:09 UTC
Add implementation of pointer axis events from wl_pointer_listener interface.
Comment 1 Jose Dapena Paz 2012-07-16 06:50:14 UTC
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.
Comment 2 Jose Dapena Paz 2012-07-16 06:56:18 UTC
Adding Rob Bradford to Cc:, as he's done the merge of the new 0.9x wayland GDK backend implementation.
Comment 3 Rob Bradford 2012-07-16 15:14:26 UTC
Patch integrated into master with a small fix. Thanks!
Comment 4 Jonas Ådahl 2012-09-30 10:48:03 UTC
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