mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-05 18:10:27 +01: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:
parent
9b1e18f42a
commit
5201310559
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue