Empty Space on Top of Screen in Maximized Window?
In this article
If you see empty space above a maximized window, it is almost always caused by Windows incorrectly remembering the window's previous size and position, or by a display scaling/DPI issue. The fix is usually to drag the window to the top edge of the screen to re-maximize it, or to adjust your display scaling settings.
Why Does This Happen?
When you maximize a window, Windows uses a stored "normal" window position (the size and location it had before maximizing). If that stored position is slightly off—for example, if the window was previously on a monitor that has since been removed, or if you changed the screen resolution—Windows may maximize the window to a rectangle that doesn't perfectly match the visible screen area. This leaves a strip of blank space at the top, bottom, or sides.
Another common cause is a mismatch between the scaling percentage of your primary display and a secondary display. If you have two monitors with different scaling (e.g., 100% on one and 150% on another), Windows can miscalculate the visible work area when you move a window between them, especially if you then maximize it.
How to Fix It (Step-by-Step)
Try these fixes in order—most users only need the first one.
- Re-maximize the window: Click the Maximize button (the square icon in the top-right corner) to un-maximize, then click it again to re-maximize. This often recalculates the window bounds correctly.
- Drag to the top edge: If the window is not maximized, grab its title bar and drag it until your mouse cursor touches the top edge of the screen. Release it—Windows should snap it to full-screen.
- Use keyboard shortcuts: Press
Win + Up Arrowto maximize, orWin + Shift + Up Arrowto maximize vertically while keeping the width. If the window is already maximized, tryWin + Down ArrowthenWin + Up Arrow. - Restart the app: Close the application completely and reopen it. This resets its in-memory window state.
- Restart Windows Explorer: Open Task Manager (Ctrl+Shift+Esc), find "Windows Explorer" in the list, right-click it, and choose "Restart." This refreshes the desktop shell and can clear stuck window positions.
- Check display scaling: Go to Settings > System > Display. Under "Scale and layout," ensure the scaling percentage is set to the recommended value (usually 100%, 125%, or 150%). If you have multiple monitors, set them all to the same scaling if possible.
- Update display drivers: Outdated or buggy graphics drivers can cause window positioning issues. Check your GPU manufacturer's website (NVIDIA, AMD, Intel) for the latest driver.
Why Does It Happen in Some Apps but Not Others?
Some applications save their own window size and position in a configuration file or the Windows Registry. If that saved data is corrupt or contains coordinates that no longer match your current screen setup, the app will open with the wrong size. This is why the issue often persists after restarting the app—it's reading the bad saved state again. In that case, you may need to reset the app's window preferences:
- Right-click the app's shortcut and choose "Properties." Under the "Compatibility" tab, click "Change high DPI settings" and try enabling "Override high DPI scaling behavior" (set to "System").
- For some apps, you can delete the window state file in the app's data folder (e.g.,
%AppData%or%LocalAppData%). Look for files with names like "layout.ini" or "windowstate.dat." Be careful—back up the file first.
What About the Taskbar and Screen Edges?
The empty space might also be caused by the taskbar being set to "Auto-hide." When the taskbar is hidden, Windows still reserves the space it would occupy, so a maximized window stops above where the taskbar would appear. To fix this:
- Right-click an empty area of the taskbar and select "Taskbar settings."
- Toggle "Automatically hide the taskbar in desktop mode" to Off.
- If it was already off, toggle it On and then Off again to refresh the work area.
Similarly, if you have a monitor with a notch (like some laptops), the system reserves space for it, which can leave a gap at the top. There's no general fix for that—it's a hardware design choice.
Is It a Sign of a Virus or Malware?
No. A stray empty space at the top of a maximized window is a cosmetic glitch in the window manager, not a symptom of malware. However, if you notice other unusual behavior (pop-ups, system slowdown, unexpected toolbars), it's worth running a security scan. But the empty space alone is harmless.
Frequently Asked Questions
Why is there a blank bar above my maximized window in Chrome?
Chrome, like most browsers, uses the standard Windows window frame. The same fixes apply: un-maximize and re-maximize, or drag the window to the top edge. If the issue persists, try disabling hardware acceleration in Chrome settings (Settings > System > "Use hardware acceleration when available") and restart the browser.
Does this happen on Windows 10 and Windows 11?
Yes, both versions share the same window management code. The fixes are identical. In Windows 11, you can also try hovering over the Maximize button to see the Snap Layouts menu and choose a full-screen layout.
Why does the empty space appear only after I disconnect an external monitor?
When you unplug a monitor, Windows recalculates the desktop area. If a window was maximized on the external monitor, its stored position may now point to a region that's off-screen or partially hidden. Re-maximizing the window or restarting the app usually resolves it.
Can I prevent this from happening?
You can reduce the frequency by keeping your display scaling consistent across monitors and by properly ejecting an external monitor (via Settings > System > Display > "Disconnect this display") instead of just unplugging it. Also, avoid using "Fullscreen" mode in games and then switching back to windowed mode—this can confuse the window manager.
Is there a registry hack to fix it?
There is no official registry setting to force windows to maximize perfectly. Editing the registry is not recommended for this issue because the problem is dynamic—it depends on current monitor configuration. The manual methods above are safer and more effective.