mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
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
This commit is contained in:
parent
4a288fdacb
commit
b29c7d01b1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue