forge
Explore
Log in

Don't you dare go Hollow

wiki: describe running games with gamescope (#1112)

Browse files at this commit

3a481b5250b1cd832768c5c3ca9e516ba9963120UnverifiedMikołaj Lercher and Ivan MolodetskikhParent: 20769b4
* wiki: describe running games with gamescope

* Update wiki/Application-Issues.md

---------
wiki/Application-Issues.mdmodified+19 -0
@@ -30,3 +30,22 @@ To fix this, run them with the `_JAVA_AWT_WM_NONREPARENTING=1` environment varia
30 30
31 There's a bug in rofi-wayland that prevents it from accepting keyboard input on niri with errors in the output.31 There's a bug in rofi-wayland that prevents it from accepting keyboard input on niri with errors in the output.
32 It's been fixed in rofi, but the fix had not been released yet: https://github.com/davatorium/rofi/discussions/200832 It's been fixed in rofi, but the fix had not been released yet: https://github.com/davatorium/rofi/discussions/2008
33+
34+### Fullscreen games
35+
36+Some video games, both Linux-native and on Wine, have various issues when using non-stacking desktop environments.
37+Most of these can be avoided with Valve's [gamescope](https://github.com/ValveSoftware/gamescope), for example:
38+
39+```sh
40+gamescope -f -w 1920 -h 1080 -W 1920 -H 1080 --force-grab-cursor --backend sdl -- <game>
41+```
42+
43+This command will run *<game>* in 1080p fullscreen—make sure to replace the width and height values to match your desired resolution.
44+`--force-grab-cursor` forces gamescope to use relative mouse movement which prevents the cursor from escaping the game's window on multi-monitor setups.
45+Note that `--backend sdl` is currently also required as gamescope's default Wayland backend doesn't lock the cursor properly (possibly related to [https://github.com/ValveSoftware/gamescope/issues/1711]).
46+
47+Steam users should use gamescope through a game's [launch options](https://help.steampowered.com/en/faqs/view/7D01-D2DD-D75E-2955) by replacing the game executable with `%command%`.
48+Other game launchers such as [Lutris](https://lutris.net/) have their own ways of setting gamescope options.
49+
50+Running X11-based games with this method doesn't require Xwayland as gamescope creates its own Xwayland server.
51+You can run Wayland-native games as well by passing `--expose-wayland` to gamescope, therefore eliminating X11 from the equation.