Skip to content

Run a window manager under xvfb-run - #23

Merged
samth merged 1 commit into
racket:masterfrom
samth:xvfb-window-manager
Oct 8, 2026
Merged

samth merged 1 commit into
racket:masterfrom
samth:xvfb-window-manager

Conversation

@samth

@samth samth commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Tests listed in test-xvfb-paths ran on a bare Xvfb display, where no
window ever gets the focus. Many GUI tests assume that a window
manager focuses a newly shown frame, as metacity does on the shared
display, so they failed or hung under xvfb-run.

xvfb-run now runs the new with-wm.sh, which starts the window manager
from fluxbox-path on the new display, waits a second for it to take
over the screen, runs the test, and exits with the test's status. The
shared display and with-wm.sh take the window manager's arguments
from one definition.

The xvfb tests now use fixture files in tests/xvfb instead of writing
programs from strings, and a new test checks that a frame shown under
xvfb-run gets the focus.

@samth
samth force-pushed the xvfb-window-manager branch 2 times, most recently from 7feed1b to 8b85db6 Compare October 8, 2026 17:46
Tests listed in test-xvfb-paths ran on a bare Xvfb display, where no
window ever gets the focus. Many GUI tests assume that a window
manager focuses a newly shown frame, as metacity does on the shared
display, so they failed or hung under xvfb-run.

xvfb-run now runs the new with-wm.sh, which starts the window manager
from fluxbox-path on the new display, waits a second for it to take
over the screen, runs the test, and exits with the test's status. The
shared display and with-wm.sh take the window manager's arguments
from one definition.

The xvfb tests now use fixture files in tests/xvfb instead of writing
programs from strings, and a new test checks that a frame shown under
xvfb-run gets the focus.
@samth
samth force-pushed the xvfb-window-manager branch from 8b85db6 to 6539df4 Compare October 8, 2026 17:50
@samth
samth merged commit 0d1825e into racket:master Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant