mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-10 03:30:16 +01: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++)
|
||||
{
|
||||
if (clients[j]->clientPtr == dev)
|
||||
PickPointer(clients[j]);
|
||||
{
|
||||
clients[j]->clientPtr = NULL;
|
||||
clients[j]->clientPtr = PickPointer(clients[j]);
|
||||
}
|
||||
}
|
||||
|
||||
if (dev->devPrivates)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue