mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 02:38:11 +02:00
dix: button state must show the logical buttons, not physical buttons
If the device is mapped 3 2 1, a click on physical button 1 sends a button 3 press, but the state was set for button 1. Fix this, the state must be set for that button's logical mapping. https://bugzilla.gnome.org/show_bug.cgi?id=655928 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 9567d21e85b99febe805263a4d93b15fd1f7ab42) Conflicts: dix/inpututils.c
This commit is contained in:
parent
625d108819
commit
4b38661024
1 changed files with 1 additions and 1 deletions
|
|
@ -927,7 +927,7 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
|
|||
|
||||
for (i = 0; mouse && mouse->button && i < mouse->button->numButtons; i++)
|
||||
if (BitIsOn(mouse->button->down, i))
|
||||
SetBit(event->buttons, i);
|
||||
SetBit(event->buttons, mouse->button->map[i]);
|
||||
|
||||
if (kbd && kbd->key)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue