Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159182639
D45838.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
580 B
Referenced Files
None
Subscribers
None
D45838.diff
View Options
diff --git a/sys/dev/usb/input/ums.c b/sys/dev/usb/input/ums.c
--- a/sys/dev/usb/input/ums.c
+++ b/sys/dev/usb/input/ums.c
@@ -320,11 +320,12 @@
if (++info != &sc->sc_info[UMS_INFO_MAX])
goto repeat;
+ /* keep old button value(s) for non-detected buttons */
+ buttons |= sc->sc_status.button & ~buttons_found;
+
#ifdef EVDEV_SUPPORT
buttons_reported = buttons;
#endif
- /* keep old button value(s) for non-detected buttons */
- buttons |= sc->sc_status.button & ~buttons_found;
if (dx || dy || dz || dt || dw ||
(buttons != sc->sc_status.button)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 12, 1:06 AM (45 m, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33896038
Default Alt Text
D45838.diff (580 B)
Attached To
Mode
D45838: EVDEV: fix incorrect mouse button reporting
Attached
Detach File
Event Timeline
Log In to Comment