Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winit: Prefer X11 over Wayland when running in WSL #5668

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

tronical
Copy link
Member

This is a workaround for the compositor on WSL tending to crash. Unfortunately we can't just try to create an event loop with x11 first and then re-try with wayland, winit doesn't allow that. So just avoid wayland for now.

The long term solution #5667

Fixes #5657

@tronical tronical requested a review from ogoffart July 22, 2024 11:29
This is a workaround for the compositor on WSL tending to crash.
Unfortunately we can't just try to create an event loop with x11 first
and then re-try with wayland, winit doesn't allow that. So just avoid
wayland for now.

The long term solution #5667

Fixes #5657
@tronical tronical merged commit 28f7ee7 into master Jul 22, 2024
7 of 32 checks passed
@tronical tronical deleted the simon/lsp-wsl branch July 22, 2024 12:12
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.

VS Code extension: Disable Wayland use when running under WSL
2 participants