mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
xwayland: terminate when no client is connected
Automatically shutdown Xwayland 10s after all X11 clients have gone away.
This commit is contained in:
parent
352064d76d
commit
f575e445ec
4 changed files with 19 additions and 0 deletions
|
|
@ -88,6 +88,9 @@ struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
|
|||
struct wlr_xwayland_server_options options = {
|
||||
.lazy = lazy,
|
||||
.enable_wm = true,
|
||||
#if HAS_XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE
|
||||
.terminate_delay = lazy ? 10 : 0,
|
||||
#endif
|
||||
};
|
||||
xwayland->server = wlr_xwayland_server_create(wl_display, &options);
|
||||
if (xwayland->server == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue