ProcessOtherEvent: Don't do double translation of button events
We already deal with the button mapping in GetPointerEvents, so don't do the remapping again in ProcessOtherEvent. (cherry picked from commit 7ff002fe3e229330216d7f2ff16cdabe63014bcd)
This commit is contained in:
parent
cbf775cde7
commit
3e0993fcf3
@ -244,7 +244,7 @@ ProcessOtherEvent(xEventPtr xE, DeviceIntPtr other, int count)
|
|||||||
other->valuator->motionHintWindow = NullWindow;
|
other->valuator->motionHintWindow = NullWindow;
|
||||||
b->buttonsDown++;
|
b->buttonsDown++;
|
||||||
b->motionMask = DeviceButtonMotionMask;
|
b->motionMask = DeviceButtonMotionMask;
|
||||||
xE->u.u.detail = b->map[key];
|
xE->u.u.detail = key;
|
||||||
if (xE->u.u.detail == 0)
|
if (xE->u.u.detail == 0)
|
||||||
return;
|
return;
|
||||||
if (xE->u.u.detail <= 5)
|
if (xE->u.u.detail <= 5)
|
||||||
@ -266,7 +266,7 @@ ProcessOtherEvent(xEventPtr xE, DeviceIntPtr other, int count)
|
|||||||
other->valuator->motionHintWindow = NullWindow;
|
other->valuator->motionHintWindow = NullWindow;
|
||||||
if (b->buttonsDown >= 1 && !--b->buttonsDown)
|
if (b->buttonsDown >= 1 && !--b->buttonsDown)
|
||||||
b->motionMask = 0;
|
b->motionMask = 0;
|
||||||
xE->u.u.detail = b->map[key];
|
xE->u.u.detail = key;
|
||||||
if (xE->u.u.detail == 0)
|
if (xE->u.u.detail == 0)
|
||||||
return;
|
return;
|
||||||
if (xE->u.u.detail <= 5)
|
if (xE->u.u.detail <= 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user