[PATCH] UngrabAllDevices: Don't kill clients if not told to

Cyril Brulebois kibi at debian.org
Thu Jan 19 03:44:07 PST 2012


Daniel Stone <daniel at fooishbar.org> (19/01/2012):
> 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 at fooishbar.org>
> Reported-by: Julien Cristau <jcristau at debian.org>

Reviewed-by: Cyril Brulebois <kibi at debian.org>

> ---
>  dix/grabs.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/dix/grabs.c b/dix/grabs.c
> index 701470c..cc2c946 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");

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120119/84240787/attachment.pgp>


More information about the xorg-devel mailing list