d.vavilov Posted September 19, 2021 Share Posted September 19, 2021 Hello. Unigine app windows minimizes to tray when it's in fullscreen mode and some other app goes on top. So video_fullscreen=1 is exclusive DirectX mode, but video_fullscreen=2 is just borderless window moved to cover whole screen, right? Can video_fullscreen=2 do not minimize on focus lost? Or video_fullscreen=0 can hide it's border? Link to comment
silent Posted September 20, 2021 Share Posted September 20, 2021 d.vavilov video_fullscreen 2 is simply a borderless window mode, so it can be hidden when other application is in focus. With video_fullscreen 0 and hidden borders you will have the same behavior. If you need to make your window always on top you can do it via 3rd party software (like CClose or WindowTop), but most of such apps requires window title bar to be present. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dmitry.vavilov Posted September 20, 2021 Share Posted September 20, 2021 thank You. so, video_fullscreen=2 minimizes on focus lost, video_fullscreen=0 doesn't minimize. now i use video_fullscreen=0 and this WinAPI workaround, everything works ok SetWindowPos(proc.MainWindowHandle, 0, 0, 0, 3840, 2160, SWP_SHOWWINDOW); var lo = GetWindowLong(proc.MainWindowHandle, GWL_STYLE); lo &= ~(WS_BORDER | WS_CAPTION | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SYSMENU); SetWindowLong(proc.MainWindowHandle, GWL_STYLE, lo); 2 Link to comment
Recommended Posts