rootston: destroy xwayland before all clients

Destroying all clients disconnects the xwayland client, and
xwayland automatically restarts when disconnected.
This commit is contained in:
emersion 2018-06-08 09:29:55 +01:00
parent 32f9699359
commit 3a81afed0e
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ int main(int argc, char **argv) {
}
wl_display_run(server.wl_display);
#ifdef WLR_HAS_XWAYLAND
wlr_xwayland_destroy(server.desktop->xwayland);
#endif
wl_display_destroy_clients(server.wl_display);
wl_display_destroy(server.wl_display);
return 0;