mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 12:50:04 +01:00
Allow value None for windows when setting ClientPointer.
We need this for clients that need to set the ClientPointer but don't have a window on display yet. If used, it will set the device as the ClientPointer for the requesting client.
This commit is contained in:
parent
d0e8f47409
commit
b5db863945
1 changed files with 5 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ ProcXSetClientPointer(ClientPtr client)
|
|||
{
|
||||
DeviceIntPtr pDev;
|
||||
WindowPtr pWin;
|
||||
ClientPtr targetClient;
|
||||
int err;
|
||||
|
||||
REQUEST(xSetClientPointerReq);
|
||||
|
|
@ -93,9 +94,11 @@ ProcXSetClientPointer(ClientPtr client)
|
|||
stuff->win, err);
|
||||
return Success;
|
||||
}
|
||||
}
|
||||
targetClient= wClient(pWin);
|
||||
} else
|
||||
targetClient = client;
|
||||
|
||||
if (!SetClientPointer(wClient(pWin), client, pDev))
|
||||
if (!SetClientPointer(targetClient, client, pDev))
|
||||
{
|
||||
SendErrorToClient(client, IReqCode, X_SetClientPointer,
|
||||
stuff->win, BadAccess);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue