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

Prefer the SDL2 Wayland backend over X11 on Linux #5654

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions osu.Framework/Platform/Linux/LinuxGameHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal LinuxGameHost(string gameName, HostOptions options)
protected override void SetupForRun()
{
SDL.SDL_SetHint(SDL.SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, BypassCompositor ? "1" : "0");
SDL.SDL_SetHint("SDL_VIDEODRIVER", "wayland,x11");
Copy link
Author

@timschumi timschumi Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use a string constant for the hint name, but that depends on flibitijibibo/SDL2-CS#243 being merged and pulled into ppy/SDL2-CS (or we just cherry-pick that commit manually, independent of the upstream).

base.SetupForRun();
}

Expand Down