Summary: | [Patch] Support keyboard scroll wheels | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Tibi Nagy <nltibi> | ||||||
Component: | Input/evdev | Assignee: | Peter Hutterer <peter.hutterer> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | enhancement | ||||||||
Priority: | medium | ||||||||
Version: | git | ||||||||
Hardware: | All | ||||||||
OS: | Linux (All) | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 16699 | ||||||||
Attachments: |
|
Description
Tibi Nagy
2008-11-23 07:26:00 UTC
On Sun, Nov 23, 2008 at 07:26:01AM -0800, bugzilla-daemon@freedesktop.org wrote: > The xorg evdev driver recognizes these EV_REL events and sends them to the > sever as mouse button 4 and 5 presses. However, because the device is > configured as keyboard, these events seem to be ignored by the server. Bellow > is a patch against the latest master branch that works around this limitation > by initializing the keyboard as pointing device in case it supports wheel > events. The solution is a bit hackish, but should work for other keyboards that > expose scrollwheel events. Why do you only enable the code if it's a keyboard? (Hunk 5) Shouldn't this check be outside of the keyboard description? Please fix up the indentation, looks like two hunks use different indentation than the surrounding code. Other than that - if it works for you, then ACK. Please attach the amended patch as a git commit (git-format-patch). Created attachment 20562 [details] [review] [PATCH] Support keyboards with scroll wheels. Here is a new version with some cleanups. I tried to correct the indentation, I hope to have gotten it right this time. Regarding the keyboard-specific setup: initially I intended to minimize the impact on the code, because I couldn't make sure that by setting those extra flags I didn't accidentally break something. But you are right: there might be exotic input devices out there that support wheel events, but are not mice or touchpads, so it might be beneficial to have the scrolling support enabled for those, too. I changed the code accordingly: it now sets those flags for every device that support scroll events but is not configured as a pointing device. Note: I tested tested against xorg-server 1.5.2. Thanks, I got it in my tree now and it will find its way upstream within a few days. Please close this bug as FIXED once you find the patch upstream (in case I forget to do so). Pushed as 2bd24649ecbae08b7bd4dacd67d141ae665f8db7. Thanks for the patch. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.