mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-28 03:30:15 +00:00
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:
@@ -3940,11 +3940,14 @@ EnterLeaveEvent(
|
||||
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->type = (type == EnterNotify) ? DeviceEnterNotify :
|
||||
DeviceLeaveNotify;
|
||||
devEnterLeave->type = (type == EnterNotify) ? DeviceEnterNotify :
|
||||
DeviceLeaveNotify;
|
||||
devEnterLeave->mode |= (event.u.enterLeave.flags << 4);
|
||||
devEnterLeave->deviceid = mouse->id;
|
||||
mskidx = mouse->id;
|
||||
inputMasks = wOtherInputMasks(pWin);
|
||||
|
||||
Reference in New Issue
Block a user