Sign in to follow this  
ZachBethel

Unexpected behavior with ALT-TAB in Fullscreen Mode (DXGI)

Recommended Posts

I am setting my DirectX11 application to run in fullscreen mode when I create the swap chain. This works fine until I ALT-TAB to minimize. All it does is undo the fullscreen mode and place the window in the background (i.e. not minimized, just a background window). Maximizing the window or refocusing the window doesn't cause it to switch back to fullscreen mode. Does DXGI expect me to do something that I'm not? I've read the MSDN documentation online and it doesn't explain how to handle this case.

Thanks. Edited by ZBethel

Share this post


Link to post
Share on other sites
ALT-TAB doesn't minimise anything. It simply swaps focus from one window to another.

If that other window isn't using fullscreen mode, Windows HAS to go into non-fullscreen mode - it has no choice.

When your app gets foreground status it's up to you to do whatever is necessary (ie switching back to fullscreen mode).

Share this post


Link to post
Share on other sites
Yeah, coming from DirectX 9.0 and Windows XP, I'm pretty sure ALT-TAB would always minimize a fullscreen application no matter what. The behavior I described seems normal, and I've reproduced it on other games.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this