Skip to content

Commit

Permalink
UI: Fixed menu issues for gamescope (#68)
Browse files Browse the repository at this point in the history
Set Avalonia's EnableInputFocusProxy flag for gamescope (SteamOS / Steam Deck), which fixes issues with the menus

Co-authored-by: Altcode <[email protected]>
  • Loading branch information
SourMesen and 4ltc0de authored Aug 23, 2024
1 parent 5b992e3 commit 73dbecd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 73dbecd

Please sign in to comment.