mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-11 05:34:37 -04: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
|
#if CAGE_HAS_XWAYLAND
|
||||||
xwayland = wlr_xwayland_create(server.wl_display, compositor, true);
|
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;
|
server.new_xwayland_surface.notify = handle_xwayland_surface_new;
|
||||||
wl_signal_add(&xwayland->events.new_surface, &server.new_xwayland_surface);
|
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 CAGE_HAS_XWAYLAND
|
||||||
if (xwayland) {
|
wlr_xwayland_set_seat(xwayland, server.seat->seat);
|
||||||
wlr_xwayland_set_seat(xwayland, server.seat->seat);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue