aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-18 08:04:37 -0500
committerGitHub <noreply@github.com>2019-01-18 08:04:37 -0500
commit268c7e5cb6e91ab437f54a9f9b9ee2683064232b (patch)
treef5165188158e29508f0dfebeb18a99e97d86f834
parent0e0ba65bc0187cc1dabd7591e2f081ab3bf44d01 (diff)
parent461360aff115d2c115dd49eeb93cdc7ad2720bd8 (diff)
Merge pull request #1475 from emersion/xwayland-shutdown
rootston: document why Xwayland is disconnected before clients
-rw-r--r--rootston/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootston/main.c b/rootston/main.c
index 7e25dab1..b14989fa 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -73,6 +73,8 @@ int main(int argc, char **argv) {
wl_display_run(server.wl_display);
#if WLR_HAS_XWAYLAND
+ // We need to shutdown Xwayland before disconnecting all clients, otherwise
+ // wlroots will restart it automatically.
wlr_xwayland_destroy(server.desktop->xwayland);
#endif
wl_display_destroy_clients(server.wl_display);