aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-24 07:47:43 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-24 07:51:24 +0200
commitb29c7d01b19fc8c6bda70af016bc536cc72fe4f9 (patch)
treefebfff4ace5017dee7d6796eb1d1ac9f53604f1d
parent4a288fdacbfec518b1caa3b413b869cd389d54d4 (diff)
xwayland: relinquish wl_fd[0] after creating client
wayland WILL close this fd during wl_client_destroy, after our handler if we close it as well this will close some of the fd we reopened
-rw-r--r--xwayland/xwayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index f30b18d0..211e2a04 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -223,6 +223,7 @@ static bool wlr_xwayland_init(struct wlr_xwayland *wlr_xwayland,
wlr_xwayland_finish(wlr_xwayland);
return false;
}
+ wlr_xwayland->wl_fd[0] = -1; /* not ours anymore */
wlr_xwayland->destroy_listener.notify = xwayland_destroy_event;
wl_client_add_destroy_listener(wlr_xwayland->client, &wlr_xwayland->destroy_listener);