diff options
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/input.c | 2 | ||||
-rw-r--r-- | rootston/main.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/rootston/input.c b/rootston/input.c index ce20e840..a3904a61 100644 --- a/rootston/input.c +++ b/rootston/input.c @@ -27,7 +27,7 @@ static const char *device_type(enum wlr_input_device_type type) { return NULL; } -static struct roots_seat *input_get_seat(struct roots_input *input, char *name) { +struct roots_seat *input_get_seat(struct roots_input *input, char *name) { struct roots_seat *seat = NULL; wl_list_for_each(seat, &input->seats, link) { if (strcmp(seat->seat->name, name) == 0) { diff --git a/rootston/main.c b/rootston/main.c index 3b65a067..58e5a5e5 100644 --- a/rootston/main.c +++ b/rootston/main.c @@ -60,6 +60,9 @@ int main(int argc, char **argv) { ready(NULL, NULL); #else if (server.desktop->xwayland != NULL) { + struct roots_seat *xwayland_seat = + input_get_seat(server.input, ROOTS_CONFIG_DEFAULT_SEAT_NAME); + wlr_xwayland_set_seat(server.desktop->xwayland, xwayland_seat->seat); wl_signal_add(&server.desktop->xwayland->events.ready, &server.desktop->xwayland_ready); server.desktop->xwayland_ready.notify = ready; |