Skip to content

Fix startup fallback when Wayland is unreachable - #16

Merged
DevanMetz merged 1 commit into
mainfrom
codex/x11-fallback
Oct 28, 2026
Merged

DevanMetz merged 1 commit into
mainfrom
codex/x11-fallback

Conversation

@DevanMetz

Copy link
Copy Markdown
Owner

Startup now probes the Wayland connection before choosing the window backend. A stale or unreachable Wayland socket falls back to X11, including its keyboard-library checks and actionable installation errors. The selected backend is passed explicitly to winit; Windows behavior is unchanged. Updated PARITY.md.

Validation: cargo build, cargo clippy --all-targets -- -D warnings, cargo test (109 passed, 4 ignored), cargo fmt --check, and cargo check --target x86_64-pc-windows-gnu all passed. Regression tests cover backend decisions, live/stale sockets, inherited descriptors, and fallback library checks. Xvfb launch with stale Wayland settings and simulated missing libxkbcommon-x11 checks passed.

Limit: socket reachability is a startup snapshot; a compositor can still disconnect afterward. No live Wayland compositor was available for GUI validation.

@DevanMetz
DevanMetz merged commit 7aafdff into main Oct 28, 2026
3 checks passed
@DevanMetz
DevanMetz deleted the codex/x11-fallback branch October 28, 2026 13:09
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