aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2018-09-08 13:00:56 +0200
committernyorain <nyorain@gmail.com>2018-09-08 13:00:56 +0200
commit195103700c29de9dbc585aa1cfb2ce01e7387ef3 (patch)
tree655309acac6bf32103e3c58ab8a5827443dfdbd9 /xwayland
parent085142ba346e0b8dd1a9b1a969a37156cf5656c1 (diff)
Fix wlr_xwayland_destroy
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index 4755608f..fe09ea5e 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -406,6 +406,10 @@ static bool xwayland_start_server_lazy(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);
xwayland_finish_server(wlr_xwayland);
xwayland_finish_display(wlr_xwayland);