GNOME Bugzilla – Bug 767093
wayland: Provide information about scroll devices
Last modified: 2016-06-01 18:53:50 UTC
The Wayland protocol does not share XI2's wealth of information about individual devices, but it does provide discriminating information about sources for scroll events. Pass this on to the application by creating separate slave devices for these, and setting them as source device on the scroll events.
Created attachment 328854 [details] [review] wayland: Provide information about scroll devices
The approach looks fine to me, I guess it's worth pointing out though that one physical device may have >1 scroll methods (eg. mouse with wheel and a scroll button assigned). I guess this is mostly up to the compositor offering such level of configurability, so this combination of features is sounds unlikely enough (not like they make a lot of sense together either). I think it's just fine to possibly send scroll events from two source devices in those cases.
(In reply to Carlos Garnacho from comment #2) > The approach looks fine to me, I guess it's worth pointing out though that > one physical device may have >1 scroll methods (eg. mouse with wheel and a > scroll button assigned). > > I guess this is mostly up to the compositor offering such level of > configurability, so this combination of features is sounds unlikely enough > (not like they make a lot of sense together either). I think it's just fine > to possibly send scroll events from two source devices in those cases. Yeah. Whats a 'single device' is a bit in the eye of the beholder anyway. E.g. I as a user think of the buttons above my touchpad as part of the touchpad, but the hw thinks they belong to the nipple.
Attachment 328854 [details] pushed as 3d0f768 - wayland: Provide information about scroll devices