wlroots-hyprland/xwayland
Simon Ser 8714657d7b xwayland: unset wlr_xwayland.server on destroy
This fixes a use-after-free in the Sway patch to filter the Xwayland
shell [1].

The server is destroyed first, then the shell. The Xwayland process
might still be using the shell while running.

When the shell is destroyed, libwayland will invoke the global
filter (to figure out whether to send a wl_registry.global_remove
to clients). Then Sway will compare the client with
wlr_xwayland_server.client. However, at that point, the server is
gone.

Reset the server to NULL so that Sway can check whether the server
is still running.

[1]: https://github.com/swaywm/sway/pull/7647
2023-06-22 16:28:43 +02:00
..
selection Zero-initialize structs in init functions 2022-04-28 10:09:50 +02:00
meson.build xwayland: enable use of a xserver subproject 2023-05-04 18:02:32 +00:00
server.c xwayland: use internal_config 2022-12-06 22:39:45 +00:00
shell.c xwayland/shell: actually use wlr_xwayland_surface_v1.link 2023-02-03 16:38:12 +03:00
sockets.c xwayland/sockets: ensure proper permissions 2021-04-16 11:53:05 +02:00
sockets.h Add some missing includes/declarations 2023-06-05 21:06:19 +00:00
xwayland.c xwayland: unset wlr_xwayland.server on destroy 2023-06-22 16:28:43 +02:00
xwm.c xwm: check for a buffer before mapping 2023-06-02 22:44:21 +03:00