Happens to me on Fedora 24 and did the same when I was on 23, both on stock Gnome3. I have to Alt+Tab every time I quit a game.
A side note, I also often get the screen appearing off centre after I quit a game. I can see my Gnome wallpaper behind Big Picture after I switch back. Seems to happen more if I use a lower resolution in Steam than my native. I'm not sure if that is related to this bug or if it belongs in another issue.
Same issue for me with Arch Linux and KDE 5.7
Also noticing that the standard Steam desktop notification and Big Picture notification show up at the same time while playing a game. Sounds like something is going on with the main Steam window while the game/stream window is in the foreground
Same on Arch Linux with Gnome and the latest Steam beta 1481318740
Still happening with Fedora which uses Gnome by default.
Kind of annoying for me as I don't have a keyboard or mouse as it's just a
Mac Mini plugged in to my TV. I always use "XMouse" on my Android to
Alt+Tab back to steam.
On Wed, 14 Dec 2016 5:03 pm parkerlreed [email protected] wrote:
Same on Arch Linux with Gnome and the latest Steam beta 1481318740
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/steam-for-linux/issues/4611#issuecomment-266950654,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACmLNIk_apSb70f5yetw5QSWOCgXIMguks5rH4bFgaJpZM4JvxVg
.
This issue was present on my Arch with GNOME for more than a year. (different installations, also different hardware -both laptop and desktop-, but always Arch Linux with GNOME)
I have a Steam Controller and the mouse functionality helps but not much, because sometimes the dash (GNOME's taskbar) won't show up until I alt tab. The focus is obviously not set on Steam but I don't think it's set on the desktop either, I don't know what happens. It only works if I alt tab to something else (e.g. the file explorer if one is open, or Chrome) and then everything is usable and I can alt-tab back to Steam.
Even more annoying is that sometimes after I do that (alt-tabbing back to Steam) I can see a gap where the GNOME Panel would have been (on top) and I can see my desktop wallpeper through it and Steam only starts displaying below it (even tho it's still in "fullscreen") thus resulting in the bottom part being outside of the display area and not visible.
I'm not sure when or what update but Big Picture is correctly coming into focus after exiting games now. Using both the exit menu in the overlay and exiting a game from its own menu.
EDIT: Interesting! It only works if I have the desktop friends window open. Otherwise it's the same old behavior.
EDIT2: Ok it's just sporadic. It did it like 5 times in a row with the friends window open but as soon as I go to record it BPM loses focus even with friends open.
Same problema for me on Fedora 25 with gnome 3. Using a Wayland sessions, I can't even alter tab to steam back without struggling, and the steam window do not goes full screen, the windows appears on the bottom right side of the screen. In xorg session, same bug, but alt tab goes back to big picture full screen.
Same issue for me on Ubuntu Gnome. It makes my Steam Link extremely cumbersome as after each game I have to go into the other room and switch windows on the computer before I can continue.
@Cybolic Any controller now should operate the mouse with the right stick/touchpad. Does that not work to switch back to it?
@parkerlreed No, the Steam Controller goes back to the standard Big Picture game pad setup, even when used as a mouse in-game.
@Cybolic Ok weird. For me if Big Picture fails to regain focus, the Steam Controller dumps back to the desktop mapping and lets me navigate that way.
I run steam on Debian Stretch with I3 window manager.
When running in big-picture mode it starts in fullscreen as it should, but after exiting from a game, steam becomes a window/tab and I need to manually "fullscreen" it again with Win+F key.
I solved this using the following script launched from Kodi as a pre-command to Steam
sleep 10
c=0
while pgrep /usr/bin/steam > /dev/null
do
DISPLAY=:0 wmctrl -l |grep Stream
if [ $? == 0 ]
then
echo Switching focus to stream window
DISPLAY=:0 wmctrl -a Stream
elif [ `DISPLAY=:0 wmctrl -l |grep -i kodi` ]
then
echo Kodi has focus
break
else
DISPLAY=:0 wmctrl -l |grep steam
if [ $? == 1 ]
then
echo Waiting up to 30 seconds for steam window to appear
if [ $c == 3 ]
then
killall steam
else
c=`expr $c + 1`
sleep 5
fi
else
echo Switching focus to Steam BPM
DISPLAY=:0 wmctrl -a Steam
fi
fi
sleep 5
done
Happens for me as well, it destroys the couch experience.
This is surely an issue with the notification system. I've managed to disable the "Steam" is ready notification on Gnome 3 by disabling all notifications in the control panel and restarting the shell (ALT+F2, r, Enter). When I exit a steam game, the notification didn't appear, and the focus was not lost, but... exiting it a second time the notification still popped up, and the client focus was lost again.
I was unable to block this notification even by using a do-not-disturb-button extension.
Such a pointless notification also... Is Steam creating it?
@Enigma0 can't say, I'm about to try other extensions https://extensions.gnome.org/extension/1007/window-is-ready-notification-remover/.
@Enigma0 Indeed, https://github.com/nunofarruca/WindowIsReady_Remover has fixed it :)
@Enigma0 Solved "mostly", there are specific circumstances that does not bring the focus back, related with the way I exit the game... can't describe exactly what though. I've noticed that exiting from Guide controller button is acting correctly, but for some in game menu exits it may or may not work.
@Enigma0 OK, this one works better than the last, fixed it in any case for me :) https://github.com/tak0kada/gnome-shell-extension-stealmyfocus
Yet another essential extension vs having baked in functionality in GNOME... If it works, that's great though.
Using Ubuntu 16.04 without gnome-extensions but unity instead.
Same problem, steam loses focus after exiting a game.
Is there a way around without gnome-extensions?
Hello @redpop1, running steam with SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 set should also workaround this issue (from #4769).
How is this still not fixed yet? Still happens to me on Ubuntu MATE 17.10 and 16.04 and Xubuntu 17.04
C'mon guys... I'm gonna try kisak's workaround soon.
Same problem on Debian Stretch with Gnome desktop.
Sorry for the late reply: Kisak solution is indeed a workaround. Thanks Kisak.
Are people running into this issue with KDE as well?
I can confirm @kisak-valve's solution also works for me on Gnome3/Archlinux, no need for focus extensions anymore, finally.
It seems to be fixed now for me. Works out of the box on Xubuntu 18.04 no workarounds.
At least on lastest Arch/Gnome it's not, but the flag fixes it.
Ops, it seems there are some drawbacks about this setting (SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0):
Same problem on KDE for me... Any update guys?
I have the problem as well, especially annoying as it breaks Steam Link. When I exit from the couch I just see a blank desktop.
I'll try the fix outlined above.
Edit: On stock Ubuntu 18.04
Edit2: setting SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 did not work for me. I had to use the gnome-extension.
Yeah, I have this too. Annoying.
The environment variable works for me both on Ubuntu (Gnome) and Solus (Budgie). No extension needed here. I have env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %U after every [Exec] in /usr/share/applications/steam.desktop. It may make sense to update the default .desktop file that Steam provides with that, unless it's considered a bit "hacky"?
Small update on this via the similar KDE bug that I originally reported. See this specifically this comment
Seems the conclusion in the kde.org bug report is that Steam seems to change _NET_WM_STATE for some reason.
My workaround is to change de default desktop behaviour of the Steam Controller mapping to change the ALT button to ALT+TAB. It brings back Steam BPM. Maybe something similar may be done for other controllers or scripted (?) at game exit?
Hope I'm on topic and it helps... Sorry if not. :)
Edit: ALT+F4... What the... I meant ALT+TAB.
I can confirm it works with env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %U. You don't need to modify the .desktop file, just replace the command in your applications manager.
On KDE: right click on start menu then "edit applications" then Steam/Steam(Native) and replace the command with:
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %U for Steam
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam-native %U for Steam(Native)
And click on Save.
I can confirm it works with
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %U. You don't need to modify the .desktop file, just replace the command in your applications manager.On KDE: right click on start menu then "edit applications" then Steam/Steam(Native) and replace the command with:
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %Ufor Steam
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam-native %Ufor Steam(Native)And click on Save.
Can confirm that this workaround works on Arch Linux with KDE.
Works for me! What I don't understand is that a bug from 2016 which is so easy to fix in the next steam update is still here. Please fix this for other users Valve!
Otherwise, thank you very much for the solution and keep up the good work! :)
Still happens for me with fresh install of Ubuntu 19.10, Steam /w beta opted in, all updated and checked, and when I quit out of Dark Souls, or Doom 2016, it stays minimized from big picture mode. (10/20/2019)
Same here. Happens consistently - very annoying.
I can confirm it works with
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %U. You don't need to modify the .desktop file, just replace the command in your applications manager.
On KDE: right click on start menu then "edit applications" then Steam/Steam(Native) and replace the command with:
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam %Ufor Steam
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/bin/steam-native %Ufor Steam(Native)
And click on Save.Can confirm that this workaround works on Arch Linux with KDE.
This works for me thanks, except, at least in Ubuntu 19,10 (default install), the path to steam is /usr/games/steam %U instead. Hopefully this is a temporary workaround for the time being.
Edit: (Additional test) does the same thing on 18.04 in regards to the bpm staying minimized.
CNR on Manjaro + KDE (Plasma). I will check on an Ubuntu.
https://extensions.gnome.org/extension/1005/focus-my-window/ - works for me on Ubuntu 18.04
Still happening here on Ubuntu Mate 18.04 & 20.04 versions.
env SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 /usr/games/steam %U works with ElementaryOS (Ubuntu 18.04 base). It's also had the added bonus of focusing all games on launch which I was having a few problems with too.
Hi there.
We ever going to get a fix, not a workaround, for this four year old bug @Plagman @gdrewb-valve ?
I know that Linux can be a fractured pain-in-the-ass but there has to be some universal mechanism for regaining focus under X11 at least, regardless of desktop manager or compositor...
I don't have this problem anymore on a freshly installed Fedora 32 with Gnome 3.36.4.
It still has issues in Ubuntu 18.04, Ubuntu 20.04, Pop!_OS 20.04, and elementary OS 5.1.6 (based on Ubuntu 18.04 HWE) using either an NVIDIA GTX 1060 or GT 1030. =/
Using an array of NVIDIA proprietary graphics drivers, from the late 300 series to 440.100 and whatever Pop!_OS 20.04 shipped with.
Yup, this is happening to me, too.
Fedora 35 and still the same issue.
I'm on Windows, not Linux , but I still have this issue on some games running Big Picture mode on a windows 11 machine that sits in the basement and has an HDMI cable to my living room TV, and is controlled solely with an Xbox controller.
It's a real problem since I can't regain control of Steam using the controller. I have to remote login (via Moonlight), move the mouse a bit, and only then I can use the controller again.
Weirdly enough, I can hear the UI sounds while using the controller, but the screen is a solid blue and I can't see what's happening until the mouse is moved (using the remote viewer trick).
This may be helpful though: If I quit the game by clicking the big round "X" button on the middle of the controller to invoke the Steam menu overlay, and then quit using Steam's "Exit Game" option it works fine. It's when the game quits "by itself" that Steam seems unaware that the game has finished running.
Thanks.
Still happens here too. Gnome on Arch. Nvidia proprietary graphics.
Replying to https://github.com/ValveSoftware/steam-for-linux/issues/4611#issuecomment-1281668493
(sorry on commenting in steam-for-linux repo but steam for windows has none)
Exactly my experience, also on Windows 11, new Big Picture is in majority of times unable to distinguish that the game has exited unless the game is killed from within the new Big Picture itself...
Edit:
Apparently, as i found in Steam forums, there is a workaround... After you exit the game and Big Picture has no focus, press and hold guide button and press right trigger (in my case PS logo + R1), that will focus it...
Confirming this also happens to me on Pop!_OS 22.04. However, sometimes, Big Picture get the focus right. So it's kind of a hit-or-miss problem.
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0x5 2020-03SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0`x2 2018-09SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0`):x1 2018-07
Your system information
Please describe your issue in as much detail as possible:
Re-opening this issue: https://github.com/ValveSoftware/steam-for-linux/issues/2050 by making a new issue since that one was seemingly fixed.
Steps for reproducing this issue: