mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-05 04:06:24 -05:00
Cage: move xwayland check
This commit is contained in:
parent
2c5b3c5ad0
commit
9b797fb98e
1 changed files with 6 additions and 3 deletions
9
cage.c
9
cage.c
|
|
@ -183,6 +183,11 @@ main(int argc, char *argv[])
|
|||
|
||||
#if CAGE_HAS_XWAYLAND
|
||||
xwayland = wlr_xwayland_create(server.wl_display, compositor, true);
|
||||
if (!xwayland) {
|
||||
wlr_log(WLR_ERROR, "Cannot create XWayland server");
|
||||
ret = 1;
|
||||
goto end;
|
||||
}
|
||||
server.new_xwayland_surface.notify = handle_xwayland_surface_new;
|
||||
wl_signal_add(&xwayland->events.new_surface, &server.new_xwayland_surface);
|
||||
|
||||
|
|
@ -227,9 +232,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
#if CAGE_HAS_XWAYLAND
|
||||
if (xwayland) {
|
||||
wlr_xwayland_set_seat(xwayland, server.seat->seat);
|
||||
}
|
||||
wlr_xwayland_set_seat(xwayland, server.seat->seat);
|
||||
#endif
|
||||
|
||||
pid_t pid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue