server: Don't crash for wl_seat_set_touch(seat, NULL)

This commit is contained in:
Martin Olsson 2012-07-09 11:35:56 +02:00 committed by Kristian Høgsberg
parent e760ec9fa9
commit 53bb401704

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