dix: Remove InitSprite, work can be done by InitializeSprite.
Free sprite struct if a spriteOwner is paired.
xfree86: Use PairDevices instead of passing booleans around when creating a
sprite.
Xext: Switch back to using LookupPointer/KeyboardDevice instead of
inputInfo.xyz.
This commit is contained in:
committed by
Peter Hutterer
parent
2a35d44b6d
commit
43bd35fcf8
@@ -1937,14 +1937,21 @@ ProcQueryKeymap(ClientPtr client)
|
||||
* pointer sprite.
|
||||
*/
|
||||
int
|
||||
PairDevices(ClientPtr client, DeviceIntPtr pointer, DeviceIntPtr keyboard)
|
||||
PairDevices(ClientPtr client, DeviceIntPtr ptr, DeviceIntPtr kbd)
|
||||
{
|
||||
if (!pairingClient)
|
||||
RegisterPairingClient(client);
|
||||
else if (pairingClient != client)
|
||||
return BadAccess;
|
||||
|
||||
keyboard->pSprite = pointer->pSprite;
|
||||
if (kbd->spriteOwner)
|
||||
{
|
||||
xfree(kbd->pSprite);
|
||||
kbd->pSprite = NULL;
|
||||
kbd->spriteOwner = FALSE;
|
||||
}
|
||||
|
||||
kbd->pSprite = ptr->pSprite;
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user