#Unity Fullscreen Mode is not allowing me to click outside of the game without it minimizing

3 messages · Page 1 of 1 (latest)

wispy egret
#

I need to read the game's wiki and say things on Discord, but the game isn't allowing that. I run multi-monitor setup (dual screen).

The issue I have is with the game minimizing itself whenever I click outside of the game to click and focus on Discord or the web browsers. It's really annoying getting flashbanged with bright lights whenever the game minimizes to my desktop.

I would like for the game to not minimize itself whenever I click outside of the game in fullscreen. In Steam, there is the option to launch the game with some arguments. I'm not sure what command would launch it in to not make it minimize itself.

-window-mode borderless and -window-mode exclusive both behave the same way, minimzing the game when the game is no longer in focus. -popupwindow just makes the game show the Windows taskbar, and I don't like that.

past pivot
#

I usually just press the Windows button and it shrinks the screen without any problems, except for when the game is loading since it doesn't allow it.
But lately I have been using window mode, since it's easier to check Discord and write to other programs. But I am also using Windows 10. Not sure if there are problems with other versions of Windows.

glad solar
#

I've been using a quickly edited auto hot key script to force the game into a replica of an actual windowed-fullscreen.
(The original script has the height of the window set to 2/3 to simulate using an ultra wide monitor for another game.)

You probably want to change the SysGet, m, Monitor line to SysGet, m, Monitor, 2 or some other number if you have multiple monitors and don't run the game in your main one.

; Uses Auto Hot Key v1.1 https://www.autohotkey.com/download/1.1/?C=M;O=D
; paste this into a text file and rename the extension to .ahk, set the game to windowed, then start the script and press F10 with the game in focus.
#SingleInstance force
#IfWinNotActive ahk_exe explorer.exe

; Set your resolution (minus decorations like start bars if you wish to leave those on-screen.
SysGet, m, Monitor ;get screen size in pixel, likely need editing for multimonitor setup: https://www.autohotkey.com/docs/v1/lib/SysGet.htm#MonitorCount
w = %mRight%    
h = %mBottom%
w_wasted = 6 ; width used by resize bars
h_wasted = 29 ; width used by caption frame and resize bars
 
; Window to fullscreen
F10::
    SetTitleMatchMode, 2
    WinGet Style, Style, A
     
    ; 0xC40000 = WS_BORDER (0x800000) + WS_DLGFRAME (0x400000) + WS_SIZEBOX aka WS_THICKFRAME (0x040000)
    if(Style & 0xC00000){ ; if has WS_CAPTION. Ignore sizebox value.
        WinGetPos, X, Y, Width, Height, A
        WinSet, Style, -0xC40000, A ; removes attributes, including sizebox...doesn't do a strict subtraction
        WinMove,A,,0,0,w,h
    }else{
        WinSet, Style, +0xC40000, A
        ; Note: will set WS_SIZEBOX even if not previously present
        if(Width > w - w_wasted){
            Width := %w%-%w_wasted%
        }
        if(Height > h - h_wasted){
            Height := %h%-%h_wasted%
        }
        WinMove,A,,%X%,%Y%,%Width%,%Height%
    }
    WinSet Redraw
Return