diff options
author | Martin Olsson <martin@minimum.se> | 2012-07-09 11:35:56 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-07-09 17:59:36 -0400 |
commit | 53bb40170475a9eaef23c700c5d1f6fac8b3510f (patch) | |
tree | e0856c9d5a736bb2d95c937a3b0786e7ee4d4799 | |
parent | e760ec9fa97c3776d8db47d26ad93b1bfd09fc6d (diff) |
server: Don't crash for wl_seat_set_touch(seat, NULL)
-rw-r--r-- | src/wayland-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |