Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

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

  1. Flip120


    Jul 21, 2016
    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


    Unity Technologies

    Nov 30, 2017

    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!