<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mouse buttons aren't listed correctly and can't be reassigned"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103119">103119</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mouse buttons aren't listed correctly and can't be reassigned
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>raster@rastersoft.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>