From 461360aff115d2c115dd49eeb93cdc7ad2720bd8 Mon Sep 17 00:00:00 2001
From: emersion <contact@emersion.fr>
Date: Fri, 18 Jan 2019 12:20:04 +0100
Subject: rootston: document why Xwayland is disconnected before clients

---
 rootston/main.c | 2 ++
 1 file changed, 2 insertions(+)

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);
-- 
cgit v1.2.3