mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Log Xwayland startup failures
Though unlikely, this commit makes server initialization totally explicit in the logs.
This commit is contained in:
parent
d71fed95da
commit
704d675a36
1 changed files with 12 additions and 8 deletions
|
@ -196,16 +196,20 @@ bool server_start(struct sway_server *server) {
|
||||||
server->xwayland.wlr_xwayland =
|
server->xwayland.wlr_xwayland =
|
||||||
wlr_xwayland_create(server->wl_display, server->compositor,
|
wlr_xwayland_create(server->wl_display, server->compositor,
|
||||||
config->xwayland == XWAYLAND_MODE_LAZY);
|
config->xwayland == XWAYLAND_MODE_LAZY);
|
||||||
wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface,
|
if (!server->xwayland.wlr_xwayland) {
|
||||||
&server->xwayland_surface);
|
sway_log(SWAY_ERROR, "Failed to start Xwayland");
|
||||||
server->xwayland_surface.notify = handle_xwayland_surface;
|
} else {
|
||||||
wl_signal_add(&server->xwayland.wlr_xwayland->events.ready,
|
wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface,
|
||||||
&server->xwayland_ready);
|
&server->xwayland_surface);
|
||||||
server->xwayland_ready.notify = handle_xwayland_ready;
|
server->xwayland_surface.notify = handle_xwayland_surface;
|
||||||
|
wl_signal_add(&server->xwayland.wlr_xwayland->events.ready,
|
||||||
|
&server->xwayland_ready);
|
||||||
|
server->xwayland_ready.notify = handle_xwayland_ready;
|
||||||
|
|
||||||
setenv("DISPLAY", server->xwayland.wlr_xwayland->display_name, true);
|
setenv("DISPLAY", server->xwayland.wlr_xwayland->display_name, true);
|
||||||
|
|
||||||
/* xcursor configured by the default seat */
|
/* xcursor configured by the default seat */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue