UngrabAllDevices: Don't kill clients if not told to
The kill_client argument to UngrabAllClients specifies if we want to kill the client holding the grab or just deactivate the grab. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reported-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9b1e18f42a
commit
5201310559
|
@ -195,7 +195,8 @@ UngrabAllDevices(Bool kill_client)
|
||||||
client = clients[CLIENT_ID(dev->deviceGrab.grab->resource)];
|
client = clients[CLIENT_ID(dev->deviceGrab.grab->resource)];
|
||||||
if (!client || client->clientGone)
|
if (!client || client->clientGone)
|
||||||
dev->deviceGrab.DeactivateGrab(dev);
|
dev->deviceGrab.DeactivateGrab(dev);
|
||||||
CloseDownClient(client);
|
if (kill_client)
|
||||||
|
CloseDownClient(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorF("End list of ungrabbed devices\n");
|
ErrorF("End list of ungrabbed devices\n");
|
||||||
|
|
Loading…
Reference in New Issue