aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwayland.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-25 13:49:47 +0200
committerKenny Levinsen <kl@kl.wtf>2022-05-07 19:25:44 +0000
commitf575e445ec36dec5fe7f5674a4dae8096a833d6f (patch)
tree9b0a7594a5543ed99d205e1aee643169a60e5435 /xwayland/xwayland.c
parent352064d76d459b499b39a99f889f96f40987f0e9 (diff)
xwayland: terminate when no client is connected
Automatically shutdown Xwayland 10s after all X11 clients have gone away.
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r--xwayland/xwayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index e09b05cf..cb62fcc1 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -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) {