Merge pull request #1233 from nyorain/fix/xwayland_destroy

Fix wlr_xwayland_destroy
This commit is contained in:
emersion 2018-09-08 13:26:44 +02:00 committed by GitHub
commit 0086dbed09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -406,6 +406,10 @@ static bool xwayland_start_server_lazy(struct wlr_xwayland *wlr_xwayland) {
} }
void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland) { void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland) {
if (!wlr_xwayland) {
return;
}
wlr_xwayland_set_seat(wlr_xwayland, NULL); wlr_xwayland_set_seat(wlr_xwayland, NULL);
xwayland_finish_server(wlr_xwayland); xwayland_finish_server(wlr_xwayland);
xwayland_finish_display(wlr_xwayland); xwayland_finish_display(wlr_xwayland);