steam-for-linux
steam-for-linux copied to clipboard
Chat window steals focus from a game when it pops-up
Your system information
Ubuntu 18.04x x64 GTX980 Properitary driver Gnome 3.26
- Steam client version (build number or date): 1-07-2018
- Distribution (e.g. Ubuntu): Ubuntu 18.04
- Opted into Steam client beta?: [Yes/No] No
- Have you checked for system updates?: [Yes/No] Yes
Please describe your issue in as much detail as possible:
Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist Chat window steals window focus when someone sends me a message, but leaving it open in background fixes the issue.
Steps for reproducing this issue:
- Open any game
- Make someone send you a message
- Observe keybaord input and mouse input taken away from a game into the chat window
Hello @Qik000, do you happen to have the steam overlay disabled with the games you are seeing this issue with?
I have overlay enabled. When i open the chat in the overlay it also opens a new separate chat window which steals the focus again.
same problem, game minimize when steam create chat window and gift too debian sid 64 bit, gnome 3.26, nvidia 384.98, steam beta
@steamlinux i think i doesnt matter that you opted into beta. It happens on every update channel
@triage-valve can we get some help ? Or at least get info on how to disable chat window popups ?
try at 1st open chat with someone, before you start game
@steamlinux it helps but its not exactly a solution. Valve could easily fix this.
I have also run into this issue on my system:
Fedora 27 64-bit Gnome 3.26 GTX 970 w/ proprietary driver
Imagine trying to play an online multiplayer game, you get a message from a friend and it causes the game to minimize. You quickly try to alt tab back into the game but you've died. GG. Fix this please!
@dearlygparted thats exactly wat happend to me. And since Ubuntu is now using Gnome Valve should really fix it ASAP.
@triage-valve is anyone working on this issue ?
It happens EVERY DAY. Its always nice when it happens on the middle of a Team Fight while playing dota
It's worse on i3. Let's say I leave Steam BigPicture open on a workspace, and I'm with the terminal emulator Termite in another workspace. If I'm on the workspace with the Termite taking the entire screen and someone from Steam chat communicates with me, a normal Steam chat window opens up and this happens:
- https://github.com/i3/i3/issues/2401#issuecomment-367519037
Settings > Friends > Flash window when I receive a message > Never Even with this it pops up chat windows on Gnome 3.26 Worked fine in Xfce 4
@hickop do you know any way how to fix this ? It seems that Valve doesnt give a cup boout it.
Valve pls, this must be fixed asap
Looks like this is the the default behavior for any newly spawned windows and Gnome.
~Check if running gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'strict'
in a terminal makes Gnome behave as expected.~
~Note: This setting can be reverted to default with gsettings set org.gnome.desktop.wm.preferences focus-new-windows 'smart'
.~
~Note for a Valve dev: If newly spawned chat windows can have _NET_WM_USER_TIME set to 0 when there is a game running, that should give the desired effect.~
I have the new focus setting set to strict
but the windows still steal focus anyways.
@kisak-valve that works on everything EXCEPT steam...
Fix this please. I hate having to login into a Unity session everytime I want to play some DOTA.
Tried using all the above mentioned but still no solution yet.
@kisak-valve I switched to Ubuntu 18.04 which is an LTS build, and you claim that steam is working perfectly on LTS, well ITS NOT. With the stock Gnome from 18.04 EXACT same thing happens. Can you finally fix it ?
Tested with the new beta chat and it's still the same problem there as well.
I'm also having this problem on Arch with Gnome 3.28 on both the stable and beta chat clients.
Edit: To add some detail, setting 'focus-new-window' to strict does improve things - the game no longer minimizes, however there's still duplicate Steam chat windows that pop up (one in overlay, one 'real' window in the desktop) and the desktop one still displays over the game. On top of that, my Gnome title bar appears as well as the dock (as I have 'dash to dock' installed, the dock shows whenever a topmost window is not nearby or fullscreen).
Yup, this issue is annoying to say the least. In old chat I just used to keep chat window open - that wouldn't minimize the game while playing and receiving a message. But with new chat beta it's worse - it minimizes the games on every single message received. No matter if window was already spawned or not.
@triage-valve can you filnally do something about your program on a system that you claim that steam WORKS PERFECTLY ? It doesnt work as intended, setting windows policy to strict affects all applications EXCEPT steam !
CAN YOU FINALLY FIX THIS AFTER ALL THIS TIME ? And also the notofication popup in the corner laggs the whole Gnome while its moving. Is there anything else you will leave broken ?!
~~There seems to be a workaround: https://askubuntu.com/questions/906328/games-minimize-on-steam~~ It doesn't work
Right click the game, select properties, then set launch options. Put this in the field:
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOST=0 %command%
Then click OK and you're done.
@mdesantis I wouldn't really consider that a workaround, since the keyboard input is still shifted from the SDL application to the new Steam window, the envvar doesn't actually prevent the change of window focus at all.
@robobenklein you're right, it doesn't even work.
I have the same issue on Pop!_OS using Gnome 3.28.2. I don't have this issue on KDE.