Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Windows Minimize shortcut (Wnd + M) when maximized windows fullscreen

Discussion in 'Windows' started by Flip120, Nov 15, 2022.

  1. Flip120

    Flip120

    Joined:
    Jul 21, 2016
    Posts:
    2
    Hi, I'm trying to support minimize the game when in Full Screen Window mode the user press the shortcut Windows + M but the game just lose the focus whiout minimizing. I realised that this only works if the game is in winowed mode.
    Is there any way to support this shortcut when the game is in fullscreen?
     
  2. timke

    timke

    Unity Technologies

    Joined:
    Nov 30, 2017
    Posts:
    408
    Hey,

    There was a bug recently filed for this. BTW Did you file this bug?

    Although I resolved/closed the bug as "By Design", that doesn't mean its the right design, and I would like to get some more info on your scenario around the shortcut.

    Windows doesn't automatically minimize a Fullscreen Window in response to Win+M for some reason, and so the Unity Runtime implements logic to force this in some cases, e.g. ExclusiveFullscreen mode. However, the "Visible in Background" Player setting overrides this operation and prevents the window from minimizing. Turning this setting off (it's enabled by default) allows Win+M to work.

    However, this setting is apparently quite important for most Windows PC games, as it prevents the game window from minimizing when switching to another app. This is especially important with multiple displays with the game running Fullscreen on one screen while say a Twitch stream is running on another. In other words, turning the setting off might not be an acceptable solution for you.

    So, I'd like to know a bit more about your scenario around Win+M shortcut, i.e. how important is this shortcut to your game?

    A modification is possible, but this functionality has been around for years and AFAIK this is the first complaint about Win+M not working. That is, I need to balance the risk of altering this code vs. the need for this shortcut to work.

    Thank you!