From 5201310559fe8708ba8278bdef77cdc1673fff71 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 19 Jan 2012 22:40:32 +1100 Subject: 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 Reported-by: Julien Cristau Reviewed-by: Cyril Brulebois Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- dix/grabs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dix') diff --git a/dix/grabs.c b/dix/grabs.c index 701470c83..cc2c946d0 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -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"); -- cgit v1.2.3