mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
Fix: pick new ClientPointer when device is closed.
This commit is contained in:
parent
5c4deb71a1
commit
aa77ffb510
1 changed files with 4 additions and 1 deletions
|
|
@ -556,7 +556,10 @@ CloseDevice(DeviceIntPtr dev)
|
||||||
for (j = 0; j < currentMaxClients; j++)
|
for (j = 0; j < currentMaxClients; j++)
|
||||||
{
|
{
|
||||||
if (clients[j]->clientPtr == dev)
|
if (clients[j]->clientPtr == dev)
|
||||||
PickPointer(clients[j]);
|
{
|
||||||
|
clients[j]->clientPtr = NULL;
|
||||||
|
clients[j]->clientPtr = PickPointer(clients[j]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->devPrivates)
|
if (dev->devPrivates)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue