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

Martin Olsson martin at minimum.se
Mon Jul 9 02:35:56 PDT 2012


---
 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);
-- 
1.7.9.5



More information about the wayland-devel mailing list