mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
server: Don't crash for wl_seat_set_touch(seat, NULL)
This commit is contained in:
parent
e760ec9fa9
commit
53bb401704
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue