mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Peter Hutterer
parent
9b1e18f42a
commit
5201310559
@@ -195,7 +195,8 @@ UngrabAllDevices(Bool kill_client)
|
||||
client = clients[CLIENT_ID(dev->deviceGrab.grab->resource)];
|
||||
if (!client || client->clientGone)
|
||||
dev->deviceGrab.DeactivateGrab(dev);
|
||||
CloseDownClient(client);
|
||||
if (kill_client)
|
||||
CloseDownClient(client);
|
||||
}
|
||||
|
||||
ErrorF("End list of ungrabbed devices\n");
|
||||
|
||||
Reference in New Issue
Block a user