xwayland: terminate when no client is connected

Automatically shutdown Xwayland 10s after all X11 clients have
gone away.
This commit is contained in:
Simon Ser 2021-06-25 13:49:47 +02:00 committed by Kenny Levinsen
parent 352064d76d
commit f575e445ec
4 changed files with 19 additions and 0 deletions

View file

@ -74,3 +74,9 @@ wlr_files += files(
)
wlr_deps += xwayland_libs
features += { 'xwayland': true }
have = cc.has_function('xcb_xfixes_set_client_disconnect_mode', dependencies: xwayland_libs)
add_project_arguments(
'-DHAS_XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE=@0@'.format(have.to_int()),
language: 'c',
)