server: Don't crash for wl_seat_set_touch(seat, NULL)
authorMartin Olsson <martin@minimum.se>
Mon, 9 Jul 2012 09:35:56 +0000 (11:35 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 9 Jul 2012 21:59:36 +0000 (17:59 -0400)
src/wayland-server.c

index d141682..9f9d6b3 100644 (file)
@@ -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);