diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-11 05:07:42 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-11 05:07:42 -0500 |
| commit | 7095d622ab6e295143d1306bdb5c8ecd85cf0745 (patch) | |
| tree | 006df0449c9deded341904e00d2ff315742f0f8d /scripts/tests/remove.bats | |
| parent | 2ffb01c62b154bac73542da63825a8ab1a17a49c (diff) | |
| download | rulesets-7095d622ab6e295143d1306bdb5c8ecd85cf0745.tar.gz rulesets-7095d622ab6e295143d1306bdb5c8ecd85cf0745.zip | |
fix(scripts): keep screenshot --launch from crashing the compositor
An XWayland client launched by --launch could send a configure request while the script tore down the headless output. Hyprland's damage path then dereferenced the removed monitor and the compositor aborted (Hyprland 0.55.2, coredump analysis in docs/design/).
The fix has two layers. --launch now forces the Wayland backend (DISPLAY unset, GDK and Qt steered to wayland) so no XWayland surface exists to race. Teardown also polls until the launched clients actually unmap before removing the output.
X11-only apps fail to map under the default, and some emacs builds are X11-only. The new --x11 flag allows XWayland for them, protected by the unmap wait. The no-window error hints at the flag.
Diffstat (limited to 'scripts/tests/remove.bats')
0 files changed, 0 insertions, 0 deletions
