Avalonia: only enable gamescope workaround under it (#6374)

Signed-off-by: Mary Guillemard <mary@mary.zone>
This commit is contained in:
Mary Guillemard 2024-03-02 11:16:46 +01:00 committed by GitHub
parent 87f238be60
commit 53b5985da6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ namespace Ryujinx.Ava
{
EnableMultiTouch = true,
EnableIme = true,
EnableInputFocusProxy = true,
EnableInputFocusProxy = Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP") == "gamescope",
RenderingMode = new[] { X11RenderingMode.Glx, X11RenderingMode.Software },
})
.With(new Win32PlatformOptions