Window focus issues when using steam in-house streaming
Hi!
I am trying to make a little streaming/light gaming TV pc with ZBOX mini PC running debian bookworm. I am experiencing flickering and loss of input when I try to stream a game from my main PC. I can get it to stop/start randomly by toggling the steam overlay.
Through some debugging I think its because gamescope cant figure out which window to focus on: the steam client or the streaming process. In the attached video, I include the --debug-focus flag and the output log shows how the focused window keeps changing (i think).
It is interesting to note that the flickering doesn't occur with games installed locally on the device.
Here is a video showing the issue (warning the flicker is pretty intense): https://youtu.be/6we9Rl483W4
Gamescope version: 2a09fbcb695102e9a990ed7cf1fdc350397a58f1
OS version: Debian 6.1.8-1 (2023-01-29) x86_64 GNU/Linux
Gamescope command:
INTEL_DEBUG=norbc gamescope --debug-focus -n -w 1920 -h 1080 -W 1920 -H 1080 -e -f -- steam -tenfoot -steamos