[PATCH weston] exposay: Fix logic inversion when ending keyboard grabs

Bryce Harrington bryce at osg.samsung.com
Fri Jul 17 19:34:47 PDT 2015


On Fri, Jul 17, 2015 at 08:58:02PM -0500, Derek Foreman wrote:
> I flipped a ! in cee82d62865ab5b239935f102c2e1f7868e0fa65
> and the exposay keyboard grab became permanent.
> 
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>

Thanks for catching that!

Pushed to git.

> ---
>  desktop-shell/exposay.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
> index 3fa585a..190dd0c 100644
> --- a/desktop-shell/exposay.c
> +++ b/desktop-shell/exposay.c
> @@ -523,7 +523,7 @@ exposay_set_inactive(struct desktop_shell *shell)
>  	if (seat->pointer_device_count)
>  		weston_pointer_end_grab(seat->pointer);
>  
> -	if (!seat->keyboard_device_count) {
> +	if (seat->keyboard_device_count) {
>  		weston_keyboard_end_grab(seat->keyboard);
>  		if (seat->keyboard->input_method_resource)
>  			seat->keyboard->grab = &seat->keyboard->input_method_grab;
> -- 
> 2.1.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list