gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Games not containend in client window

Open gegoxaren opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • [x] The issue occurs on upstream gamescope without any modifications

Current Behavior

It appears that running native apps through gamescope does not "box" the widows using the settings provided.

I am using Flatpak Steam and Gamescope

Steps To Reproduce

  1. have tried with say Echalon: Book 1 using gamescope --backend sdl --rt -F pixel -S integer -r 60 -w 800 -h 600 -o 60 -W 1600 -H 1200 -- %command% or gamescope --backend sdl -W 1600 -H 1200 -- %command%
  2. click play
  3. game settings window pops up, not in a window
  4. clicking start game launches in full screen if I have the setting set, despite I expecting the game to be in a window, Xnest style.

Hardware information

- Distro:  Debian 12 (flatpak)
- CPU:  AMD FX(tm)-8350 Eight-Core Processor
- GPU:  AMD Radeon RX 570 Series (RADV POLARIS10)
- Driver Version:  Mesa 22.3.6

Software information

- Desktop environment: 
- Session type: 
- Gamescope version: 
- Gamescope launch command(s):

Which gamescope backends have the issue you are reporting?

  • [ ] Wayland (default for nested gamescope)
  • [ ] DRM (default for embedded gamescope, i.e. gamescope-session)
  • [x] SDL
  • [ ] OpenVR

Logging, screenshots, or anything else

No response

gegoxaren avatar Jul 02 '25 15:07 gegoxaren

I am confused if you mean the game is not contained by the gamescope session, or if you are misunderstanding the way gamescope handles windows. Gamescope will always display one full screen window, scaling it as needed to fill the area used by the SDL window you see. This is intended behavior if you are asking about it displaying a single active full screen window. If you wish to have a stacking or tiling window manager behavior, this is not the project currently. I would be interested to see if valve would accept a tiling implementation into gamescope, but stacking is almost entirely not going to be a feature.

davidawesome02-backup avatar Jul 05 '25 14:07 davidawesome02-backup

I am confused if you mean the game is not contained by the gamescope session, or if you are misunderstanding the way gamescope handles windows. Gamescope will always display one full screen window, scaling it as needed to fill the area used by the SDL window you see. This is intended behavior if you are asking about it displaying a single active full screen window. If you wish to have a stacking or tiling window manager behavior, this is not the project currently. I would be interested to see if valve would accept a tiling implementation into gamescope, but stacking is almost entirely not going to be a feature.

I'm pretty sure they're talking about their games not launching inside of gamescope, as if it wasn't even there. I've experienced this issue myself at some point and it really comes down to the gamescope flatpak not working as well as the native package.

effects3d avatar Jul 05 '25 23:07 effects3d

It does not contain the windows at all.

It's like it is not even there, as @effectsbot stated.

gegoxaren avatar Jul 14 '25 19:07 gegoxaren

If I enter a shell in the flatpak, and run it manually it does work flawlessly.

$ flatpak run --command=bash com.valvesoftware.Steam

[📦 com.valvesoftware.Steam ~]$ /usr/lib/extensions/vulkan/gamescope/bin/gamescope --backend sdl -W 1600 -H 1200 -- /home/gego/.steam/steam/steamapps/common/Eschalon\ Book\ I/eschalon_book_1 

Thus this must be a problem when launching under steam, I'd say.

Edit: Launching the game using the "Legacy Runtime 1.0" in the comparability section seems to have solved the issue. It is just such a strange issue... Why does it only happen when using the Scout runtime?

gegoxaren avatar Jul 14 '25 20:07 gegoxaren