Game crashes or goes black after Alt+Tab
If you have the symptom of “flickering when you alt-tab,” full screen/overlay conflicts, graphics drivers, etc. can be considered as possible causes. Please check step 1 in order, starting with ‘Change the game to borderless window mode’.
First, check that this guide matches your problem
Do you have these symptoms?
- Crashes when I Alt+Tab
- Black screen after Alt+Tab
- Game freezes after switching windows
Common causes
- Full screen/overlay conflict
- Graphics driver
- HDR/refresh rate switching issue
How to fix
4 steps, 28 min–48 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
In exclusive fullscreen, every Alt+Tab switches the display mode, and if the game fails to reacquire the display, you get a black screen or a crash. Borderless windowed mode avoids that switch.
- Change the display mode in the game's graphics settings from Fullscreen to Borderless window (it may be called Borderless, Windowed Fullscreen, etc.).
- Restart the game, then AltTab to the desktop and back several times to see whether the symptom recurs.
What to check
If borderless mode has no problems, simply using it is the easiest fix. If you need fullscreen, or it crashes even in borderless mode, match the resolution and refresh rate.
Did this step fix it?
If the game and desktop use different resolutions or refresh rates, the monitor has to resync on every switch, which can lengthen the black screen or make the game stop responding.
- Check the desktop resolution in Settings → System → Display, and the refresh rate under Advanced display.
- Set the resolution and refresh rate (Hz) in the game's graphics settings to the same values.
- With two monitors, run the game on the main monitor, and if the other monitor's refresh rate is very different, temporarily match it to compare.
What to check
If switching gets faster and stops crashing after matching the values, the problem is solved. If a black screen remains, turn off HDR and fullscreen optimizations and compare.
Did this step fix it?
With HDR on, switching between an SDR desktop and an HDR game also switches the color space, which can cause a black screen or freeze. Fullscreen optimizations can also cause switching problems in some games.
- Turn off Use HDR in Settings → System → Display, and turn off the HDR option inside the game too.
- Right-click the game's executable (.exe) → Properties → Compatibility tab and check Disable fullscreen optimizations.
- Change one setting at a time to see which one makes the difference.
What to check
If turning off HDR fixes it, leave HDR off while gaming or toggle it with Win + Alt + B. If neither setting matters, check overlays and the graphics driver.
Did this step fix it?
Discord, Steam and GPU overlays draw on top of the game, so they easily conflict at the moment of an Alt+Tab switch. The driver can also hang while reacquiring the display.
- Turn off all Discord, Steam, NVIDIA and AMD overlays and any recording or monitoring tools, then test AltTab again.
- When stuck on a black screen, press WinCtrlShiftB to restart the graphics driver. A brief screen flicker is normal.
- If it started after a recent driver update, roll back to the previous version; otherwise, do a clean install of the latest stable version from the GPU maker's site.
What to check
If turning off overlays fixes it, keep only the offending overlay off. If it still crashes after all of this, check the game's official forum for the same symptom and known fixes.
Did this step fix it?
Frequently asked questions
Related problems
If the symptoms do not match exactly, please check the issue below.
Related error codes
If the code below appears on the screen, refer to the confirmation procedure for each error.
View all error codes