backend/wayland: Add registering multiple seats

This commit is contained in:
Mykola Orliuk 2020-10-03 23:06:10 +02:00 committed by Simon Ser
parent 85b0872650
commit 70ffda3ea3
4 changed files with 25 additions and 25 deletions

View file

@ -157,8 +157,8 @@ static bool backend_start(struct wlr_backend *backend) {
wl->started = true;
struct wlr_wl_seat *seat = wl->seat;
if (seat != NULL) {
struct wlr_wl_seat *seat;
wl_list_for_each(seat, &wl->seats, link) {
if (seat->keyboard) {
create_wl_keyboard(seat);
}
@ -262,6 +262,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display,
wl->local_display = display;
wl_list_init(&wl->devices);
wl_list_init(&wl->outputs);
wl_list_init(&wl->seats);
wl->remote_display = wl_display_connect(remote);
if (!wl->remote_display) {