wlroots/include
David Turner ea1ade5e5d xwm: Fix double-close
When an FD is passed to xcb_connect_to_fd(), xcb takes ownership of that
FD and is responsible for closing it, which it does when
xcb_disconnect() is called.  But the xwayland handler code also keeps a
copy of the FD and closes it via safe_close() in
server_finish_process().

This double-close can cause all sorts of problems if another part of
wlroots allocates another FD between the two closes - the latter close
will close the wrong FD and things go horribly wrong (in my case leading
to use-after-free and segfaults).

Fix this by setting wm_fd[0]=-1 after calling xwm_create(), and ensuring
that xwm_create() closes the FD if startup errors occur.

(cherry picked from commit 879243e370)
2025-10-21 10:25:40 -04:00
..
backend Fix/cleanup includes a bit 2025-04-15 20:13:29 +03:00
interfaces types/wlr_input_device: move init and finish function to private API 2022-03-07 16:37:41 +00:00
render Fix/cleanup includes a bit 2025-04-15 20:13:29 +03:00
types backend, output: send commit events after applying all in wlr_backend_commit() 2025-09-22 16:00:23 -04:00
util util/matrix: add matrix_invert() 2025-03-30 16:21:26 +02:00
wlr drm-lease-v1: remove connector active_lease & lease connectors 2025-09-11 09:12:49 -04:00
xcursor Add some missing includes/declarations 2023-06-05 21:06:19 +00:00
xwayland xwm: Fix double-close 2025-10-21 10:25:40 -04:00
meson.build render/color: add fallback stub when LCMS2 is disabled 2024-06-04 17:45:51 +00:00