mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
backend/wayland: zero out finished input devices
This commit is contained in:
parent
a43d105a50
commit
03c88b07ba
@ -325,7 +325,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||
|
||||
wl_keyboard_release(seat->wl_keyboard);
|
||||
wlr_keyboard_finish(&seat->wlr_keyboard);
|
||||
|
||||
memset(&seat->wlr_keyboard, 0, sizeof(seat->wlr_keyboard));
|
||||
seat->wl_keyboard = NULL;
|
||||
}
|
||||
|
||||
@ -340,6 +340,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||
|
||||
wl_touch_release(seat->wl_touch);
|
||||
wlr_touch_finish(&seat->wlr_touch);
|
||||
memset(&seat->wlr_touch, 0, sizeof(seat->wlr_touch));
|
||||
seat->wl_touch = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user