Page MenuHomeFreeBSD

EVDEV: fix incorrect mouse button reporting
ClosedPublic

Authored by nsonack_outlook.com on Jul 2 2024, 6:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 9 2024, 12:28 AM
Unknown Object (File)
Oct 9 2024, 12:28 AM
Unknown Object (File)
Oct 9 2024, 12:27 AM
Unknown Object (File)
Oct 9 2024, 12:08 AM
Unknown Object (File)
Oct 6 2024, 9:22 PM
Unknown Object (File)
Oct 2 2024, 7:21 PM
Unknown Object (File)
Sep 30 2024, 1:50 AM
Unknown Object (File)
Sep 29 2024, 6:24 PM
Subscribers

Details

Summary

Without this patch I see the following symptoms:

  • Mouse used: CHERRY MW 8C Ergo (VID = 046a, PID = c118)
  • Push any button and start dragging
  • Note that it quickly selects but then releases the button despite it still being pressed causing selections to be aborted

This is particularly annoying in X11 and Wayland which both suffer from the same symptom. It does however not happen with moused.

This patch fixes the order of initialisation of the buttons_reported variable.

Reference: e012a280a584 (EVDEV: ums evdev support improvements: locking and event reporting, 2016-10-22)
Very Likely Fixes: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274830

Test Plan

I have tested this with a few mouses and it seems to work just fine. Maybe some of the people on the Bugzilla bug report can test this too.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable