On Thu, Jan 19, 2012 at 10:40:32PM +1100, Daniel Stone wrote:
> 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 <[email protected]>
> Reported-by: Julien Cristau <[email protected]>

Reviewed-by: Peter Hutterer <[email protected]>

Cheers,
  Peter

> ---
>  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");
> -- 
> 1.7.8.3
> 
> _______________________________________________
> [email protected]: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to