WEFT_OS/crates/weft-compositor/src
Marco Allegretti 828984be4b
fix(compositor): close the focused window on Alt+F4 and let the shells exit without crashing
There was no compositor-owned way to close an application window. Alt+F4
is now taken by the compositor: it sends xdg_toplevel close to the
focused application window, never the panel, and the key does not reach
the client.

Closing exposed a crash in both Servo hosts: their shell-protocol
client, created on winit's Wayland display, was dropped after that
display was torn down, so wl_proxy_destroy touched freed memory and
the process ended with SIGSEGV. The hosts now release Servo and the
shell client in winit's exiting handler, while the display is alive.

check_activation.py closes the focused application with Alt+F4 and
requires its session to stop with the app shell exiting with status 0,
the window to disappear, and Alt+F4 with the panel focused to leave
the panel in place.
2026-10-09 16:22:59 +00:00
..
backend fix(compositor): keep the stacking order through layout changes 2026-10-09 16:11:20 +00:00
protocols fix(compositor): show the shell's home on a panel click and release a dead panel's strip 2026-10-09 16:06:19 +00:00
appd_ipc.rs fix(compositor): give a session focus on map only once in its lifetime 2026-10-09 15:45:52 +00:00
input.rs fix(compositor): close the focused window on Alt+F4 and let the shells exit without crashing 2026-10-09 16:22:59 +00:00
main.rs fix(compositor): own stacking and focus, and activate app windows on request 2026-10-09 15:36:55 +00:00
state.rs fix(compositor): hand focus on when a registering panel is lowered 2026-10-09 16:14:31 +00:00
windows.rs fix(compositor): close the focused window on Alt+F4 and let the shells exit without crashing 2026-10-09 16:22:59 +00:00