Squish the flags into the upper bits of the mode field for EnterLeave events.
This way we have enough space for the detail field.
This commit is contained in:
parent
333bab4b23
commit
0b4db74922
|
@ -3940,11 +3940,14 @@ EnterLeaveEvent(
|
||||||
NullGrab, 0);
|
NullGrab, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* we don't have enough bytes, so we squash flags and mode into
|
||||||
|
one byte, and use the last byte for the deviceid. */
|
||||||
devEnterLeave = (deviceEnterNotify*)&event;
|
devEnterLeave = (deviceEnterNotify*)&event;
|
||||||
devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify :
|
devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify :
|
||||||
DeviceLeaveNotify;
|
DeviceLeaveNotify;
|
||||||
devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify :
|
devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify :
|
||||||
DeviceLeaveNotify;
|
DeviceLeaveNotify;
|
||||||
|
devEnterLeave->mode |= (event.u.enterLeave.flags << 4);
|
||||||
devEnterLeave->deviceid = mouse->id;
|
devEnterLeave->deviceid = mouse->id;
|
||||||
mskidx = mouse->id;
|
mskidx = mouse->id;
|
||||||
inputMasks = wOtherInputMasks(pWin);
|
inputMasks = wOtherInputMasks(pWin);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user