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