diff options
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/chdevcur.c | 10 | ||||
-rw-r--r-- | Xi/xiproperty.c | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/Xi/chdevcur.c b/Xi/chdevcur.c index 0315edba5..977095cac 100644 --- a/Xi/chdevcur.c +++ b/Xi/chdevcur.c @@ -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); diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index 3cda82b6e..cd4946026 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -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) |