[Wayland-bugs] [Bug 103119] Mouse buttons aren't listed correctly and can't be reassigned
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Oct 5 22:31:51 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103119
Bug ID: 103119
Summary: Mouse buttons aren't listed correctly and can't be
reassigned
Product: Wayland
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: libinput
Assignee: wayland-bugs at lists.freedesktop.org
Reporter: raster at rastersoft.com
I migrated from X to Wayland today and found a problem:
My mouse (a logitech M560) has 9 buttons (left, middle, right, wheel up, wheel
down, wheel left, wheel right, and two buttons for the thumb). With Xorg I used
xmodmap to remap one of the thumb buttons as the middle button, because it is
easier to use.
When I changed to Wayland I tried to do the same with "xinput set-button-map",
but I was unable. Xinput says that my mouse has 10 buttons (but in fact it has
only 9). When I use "xinput test" to see which event number is assigned to each
button, it says that they map to 1, 2, 3, 4, 5, 6, 7, 10 and 11, being 10 and
11 the two thumb buttons.
The problem is that "xinput get-button-map" returns "1 2 3 4 5 6 7 8 9 10"
(that's why I say that it says that my mouse has 10 buttons), but if I try to
remap the thumb button that emits the event 11 to be used as the middle button,
it doesn't work: it is not possible to remap the "11 button" to emit the "2
event" ("middle button"); this is: "xinput set-button-map X 1 11 3 4 5 6 7 8 9
10 2" (being X the mouse device, of course) doesn't work because I'm trying to
remap the 11th button, the one that xinput doesn't detect.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171005/f5183a24/attachment.html>
More information about the wayland-bugs
mailing list