Xi: silence two compiler warnings
chdevcur.c:97: warning: ‘SecurityLookupIDByType’ is deprecated (declared at ../include/resource.h:269) xiproperty.c:200: warning: passing argument 2 of ‘GetEventFilter’ from incompatible pointer type Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4a36db6077
commit
b395da91c5
|
@ -94,12 +94,10 @@ int ProcXIChangeCursor(ClientPtr client)
|
|||
}
|
||||
else
|
||||
{
|
||||
pCursor = (CursorPtr)SecurityLookupIDByType(client, stuff->cursor,
|
||||
RT_CURSOR, DixReadAccess);
|
||||
if (!pCursor)
|
||||
{
|
||||
return BadCursor;
|
||||
}
|
||||
rc = dixLookupResourceByType((pointer*)&pCursor, stuff->cursor,
|
||||
RT_CURSOR, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
}
|
||||
|
||||
ChangeWindowDeviceCursor(pWin, pDev, pCursor);
|
||||
|
|
|
@ -197,7 +197,8 @@ static void send_property_event(DeviceIntPtr dev, Atom property, int what)
|
|||
xi2.time = currentTime.milliseconds;
|
||||
xi2.property = property;
|
||||
xi2.what = what;
|
||||
SendEventToAllWindows(dev, GetEventFilter(dev, &xi2), (xEvent*)&xi2, 1);
|
||||
SendEventToAllWindows(dev, GetEventFilter(dev, (xEvent*)&xi2),
|
||||
(xEvent*)&xi2, 1);
|
||||
}
|
||||
|
||||
static int list_atoms(DeviceIntPtr dev, int *natoms, Atom **atoms_return)
|
||||
|
|
Loading…
Reference in New Issue
Block a user