Xext: fix invalid event type mask in XTestSwapFakeInput
In commitb320ca0
the mask was inadvertently changed from octal 0177 to hexadecimal 0x177. Fixes commitb320ca0ffe
Xtest: disallow GenericEvents in XTestSwapFakeInput Found by Stuart Cassoff Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commitbb1711b7fb
)
This commit is contained in:
parent
69ab3bcaa0
commit
b7760d41c1
|
@ -502,7 +502,7 @@ XTestSwapFakeInput(ClientPtr client, xReq * req)
|
|||
|
||||
nev = ((req->length << 2) - sizeof(xReq)) / sizeof(xEvent);
|
||||
for (ev = (xEvent *) &req[1]; --nev >= 0; ev++) {
|
||||
int evtype = ev->u.u.type & 0x177;
|
||||
int evtype = ev->u.u.type & 0177;
|
||||
/* Swap event */
|
||||
proc = EventSwapVector[evtype];
|
||||
/* no swapping proc; invalid event type? */
|
||||
|
|
Loading…
Reference in New Issue