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

Alt+F4 does not behave as expected when using STEAM_FRAME_FORCE_CLOSE=1

Open gracicot opened this issue 10 years ago • 15 comments

Hi. I use steam On KDE 4.11. I tried the option STEAM_FRAME_FORCE_CLOSE=1 to make steam minimize to tray when closing. When clicking on the close button on steam, it work like a charm. And then I tried to close it by Alt + F4 or by the window Manager (example: expo) it shutdown steam. It should minimize to tray, like any other applications do or when you press the close button.

gracicot avatar Dec 23 '13 05:12 gracicot

This is expected behavior as STEAM_FRAME_FORCE_CLOSE only affects the close box. We deliberately exit steam on Alt+F4 of the last window to handle cases where the tray doesn't work. We could add a new environment variable to control Alt+F4 behavior so leaving this open as a feature request.

gdrewb-valve avatar Jan 06 '14 22:01 gdrewb-valve

Then the close button should shutdown steam, just like other close button displayed by the window manager or Alt + F4. The user expect that all close button (including Alt+ F4) behave the same way, and the environment variable should affect all the possibles ways to close it. This would be more user friendly to standardise the multiple way to close it to get the expected behaviour. It's strange to see steam window minimize when clicking on the close button and shutdown when right clicking on the task manager and then clicking on close.

gracicot avatar Jan 08 '14 04:01 gracicot

Second this. I expected Alt-F4 to minimize the window, same as clicking the close button (which I absolutely never do anyway; I always use Alt-F4). I wondered why Steam was closing on me all the time until I suspected that Alt-F4 might not behave the same way as the close button. Please implement this! :)

cmeeren avatar Jul 25 '16 21:07 cmeeren

Thirded. Killing the window should have the same behavior as clicking the close button.

Narthorn avatar Oct 15 '16 08:10 Narthorn

Me too. In Windows® Alt-F4 behaves the same as the close button. Should the shell icon fail using the Windows task manager is required. Why the special behaviour for Linux? There are equivalents to the task manager on Linux.

ghost avatar Aug 27 '17 17:08 ghost

Quinted. It's annoying when I accidently quit steam because I hit alt+f4 like with all my other windows.

Thermi avatar Dec 08 '18 16:12 Thermi

I am also experiencing this behavior in GNOME 3.36. Many other apps that have a tray icon (i.e. Discord, Telegram Desktop) close the window but keep running in the background with a tray icon. Closing the Steam window by clicking on the close button works as expected and leaves an icon in the tray.

Alt+F4 fully closes Steam, however.

Rodancoci avatar Jun 18 '20 03:06 Rodancoci

I also would expect Alt f4 to minimize steam to tray, just like in windows....

LeSnake04 avatar Nov 22 '20 16:11 LeSnake04

I made a thread requesting that Ctrl+q be bound to exiting steam and found out about Alt+F4 and was directed to this thread. Why is the kotkey to exit steam Alt+F4 instead of Ctrl+q? It doesn't seem like Ctrl+q is bound to anything else in client as far as I can tell.

I understand that steam isn't the only app that doesn't have this kotkey bound this way. For example neither does Spoitfy and chromium based browsers and to be honest I have the same question for the devs of those apps as well but I already knew about this issue tracker I wanted to ask here first.

codeman101 avatar Nov 22 '20 23:11 codeman101

Seems to me the standard is for alt+f4 to close windows (and where applicable leave the app running with a tray icon) whereas ctrl+q outright quits the application.

I often accidentally quit Steam by pressing alt+f4 because I keep expecting it to close to the tray instead of quitting entirely

Rodancoci avatar Nov 23 '20 01:11 Rodancoci

over 7 years later this error still bugs me :( I'm on Ubuntu 20.04...

poison64 avatar Mar 09 '21 14:03 poison64

over 7 years later this error still bugs me :( I'm on Ubuntu 20.04...

I didn't realized this issue is that old. Please valve, just do this simple change

I don't want to install third programs to add the functionality to the client because I don't want to lose my account

LeSnake04 avatar Mar 09 '21 14:03 LeSnake04

Why is this still not fixed, anyway???

gwemmie avatar Dec 26 '21 20:12 gwemmie

@ValveSoftware, please fix

InvisibleRain avatar Sep 11 '22 13:09 InvisibleRain

Still an issue nine years later. I find this very frustrating, as I often do it by accident when I Alt+F4 with the wrong window focused. For example, I mean to Alt+F4 my authenticator app after logging into something, but Steam was actually focused (difficult to tell as Steam doesn't seem to change appearance at all to indicate whether it's focused or unfocused). As a result, Steam then closes out entirely, and I have to waste time waiting for it to fully exit, then launch it again and get set back up.

JaneSmith avatar Sep 12 '22 20:09 JaneSmith