aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-02-25 07:41:26 +0530
committersinanmohd <sinan@firemail.cc>2023-04-07 14:57:56 +0530
commit4d3613f4a3e11e957a27f189f19e5e0024a99a0e (patch)
treefcc9b28f9b24172b28efe131c4c0a8adabc73977
parentd842e4658711865216b9b6c9942a2d749c01273c (diff)
fix: wayland support: force gamescope for wine games when using wayland
-rwxr-xr-xsoibox6
1 files changed, 6 insertions, 0 deletions
diff --git a/soibox b/soibox
index e6505cd..5241c47 100755
--- a/soibox
+++ b/soibox
@@ -627,6 +627,12 @@ main()
[ -n "$mangohud" ] &&
setup_mangohud "$mangohud"
+ if [ -n "$WAYLAND_DISPLAY" ] && [ -n "$wine" ]
+ then
+ warn "wine running on wayland session, forcing gamescope"
+ gamescope=on
+ fi
+
[ "$dry_run" = "true" ] &&
exit