From 73dbecded6d24bcc7172101b405a6ea746894ede Mon Sep 17 00:00:00 2001 From: SourMesen Date: Fri, 23 Aug 2024 17:19:28 +0900 Subject: [PATCH] UI: Fixed menu issues for gamescope (#68) Set Avalonia's EnableInputFocusProxy flag for gamescope (SteamOS / Steam Deck), which fixes issues with the menus Co-authored-by: Altcode <8424518+4ltc0de@users.noreply.github.com> --- UI/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/Program.cs b/UI/Program.cs index dfc4ba319..89615428c 100644 --- a/UI/Program.cs +++ b/UI/Program.cs @@ -158,7 +158,9 @@ public static AppBuilder BuildAvaloniaApp() .UseReactiveUI() .UsePlatformDetect() .With(new Win32PlatformOptions { }) - .With(new X11PlatformOptions { }) + .With(new X11PlatformOptions { + EnableInputFocusProxy = Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP") == "gamescope", + }) .With(new AvaloniaNativePlatformOptions { }) .LogToTrace(); }