[PATCH 4/5] server: Don't crash for wl_seat_set_touch(seat, NULL)

Martin Olsson martin at minimum.se
Mon Jul 9 03:32:37 PDT 2012


Pekka already sent a (still unmerged) patch for this on the 5th of 
July, subject:
[PATCH wayland 2/2] server: fix wl_seat_set_{keyboard,touch}

So probably just drop my patch.


M

On 07/09/2012 11:35 AM, Martin Olsson wrote:
> ---
>   src/wayland-server.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/wayland-server.c b/src/wayland-server.c
> index d141682..9f9d6b3 100644
> --- a/src/wayland-server.c
> +++ b/src/wayland-server.c
> @@ -759,7 +759,7 @@ wl_seat_set_touch(struct wl_seat *seat, struct wl_touch *touch)
>   		return;
>
>   	seat->touch = touch;
> -	if (!touch)
> +	if (touch)
>   		touch->seat = seat;
>
>   	seat_send_updated_caps(seat);
>




More information about the wayland-devel mailing list