ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
14.66k stars 2.16k forks source link

Boss Key #6790

Open aqilc opened 4 years ago

aqilc commented 4 years ago

Describe the new feature: Its another missing feature from osu!stable that I would love to have on Lazer. The Boss Key automatically hides the game, stores the state it was in, mutes all sound, and makes it accessible through the taskbar.

Proposal designs of the feature: The default keybind for it would be the "Insert" key. Pressing it would hide the game and store the state.

huoyaoyuan commented 4 years ago

Implementation

The task bar icon is only exposed via legacy WinForms API. After being cross-platform, referencing it will cause problems, such that not buildable on other OSs. Can be implemented in framework manually.

Platform parity

What's the similar concept of a target suitable for Boss Key on other OSs? Should be answered by regular users of them. I and many developers are only command line users of Linux.

jai-x commented 4 years ago

EWMH compliant X11 window managers on Linux should be able to make use of the client to window manager communication functions to set the X11 window state from NORMAL to either ICONIC or WIDTHDRAWN to hide the osu!lazer window. This should yield the desired behaviour.

th-winkler commented 1 month ago

Just wanted to check on the implementation status, it's currently the only missing feature that holds me back from transitioning clients :)