summaryrefslogtreecommitdiff
path: root/xserver/Xi/exevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/Xi/exevents.c')
-rw-r--r--xserver/Xi/exevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/Xi/exevents.c b/xserver/Xi/exevents.c
index dcb496fd4..9d43564f8 100644
--- a/xserver/Xi/exevents.c
+++ b/xserver/Xi/exevents.c
@@ -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)
{