steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Big Picture Mode loses focus after exiting a game

Open Snowman3456 opened this issue 10 years ago • 58 comments

Your system information

  • Steam client version: Latest (non beta)
  • Distribution (e.g. Ubuntu): Ubuntu GNOME 16.04.1
  • Opted into Steam client beta?: [No]
  • Have you checked for system updates?: [Yes]

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:

  1. Launch Big Picture Mode
  2. Launch a game
  3. Exit game
  4. Big Picture Mode does not regain focus

Snowman3456 avatar Aug 29 '16 18:08 Snowman3456

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.

mattbell87 avatar Sep 13 '16 22:09 mattbell87

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

ryester19 avatar Sep 18 '16 05:09 ryester19

Same on Arch Linux with Gnome and the latest Steam beta 1481318740

parkerlreed avatar Dec 14 '16 06:12 parkerlreed

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 .

mattbell87 avatar Dec 14 '16 09:12 mattbell87

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.

hmlendea avatar Dec 15 '16 07:12 hmlendea

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.

parkerlreed avatar Dec 22 '16 02:12 parkerlreed

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.

danielbibit avatar Jan 03 '17 00:01 danielbibit

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 avatar Jan 09 '17 19:01 Cybolic

@Cybolic Any controller now should operate the mouse with the right stick/touchpad. Does that not work to switch back to it?

parkerlreed avatar Jan 09 '17 19:01 parkerlreed

@parkerlreed No, the Steam Controller goes back to the standard Big Picture game pad setup, even when used as a mouse in-game.

Cybolic avatar Jan 09 '17 20:01 Cybolic

@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.

parkerlreed avatar Jan 09 '17 20:01 parkerlreed

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.

shaohme avatar Jan 24 '17 17:01 shaohme

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

cartel0x27 avatar Feb 19 '17 21:02 cartel0x27

Happens for me as well, it destroys the couch experience.

oblitum avatar Aug 16 '17 15:08 oblitum

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.

oblitum avatar Aug 16 '17 15:08 oblitum

I was unable to block this notification even by using a do-not-disturb-button extension.

oblitum avatar Aug 16 '17 16:08 oblitum

Such a pointless notification also... Is Steam creating it?

Snowman3456 avatar Aug 16 '17 16:08 Snowman3456

@Enigma0 can't say, I'm about to try other extensions https://extensions.gnome.org/extension/1007/window-is-ready-notification-remover/.

oblitum avatar Aug 16 '17 16:08 oblitum

@Enigma0 Indeed, https://github.com/nunofarruca/WindowIsReady_Remover has fixed it :)

oblitum avatar Aug 16 '17 16:08 oblitum

@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.

oblitum avatar Aug 16 '17 16:08 oblitum