Fix two-pixel gap at the bottom of a maximized Terminal window#20209
Open
reflectronic wants to merge 1 commit into
Open
Fix two-pixel gap at the bottom of a maximized Terminal window#20209reflectronic wants to merge 1 commit into
reflectronic wants to merge 1 commit into
Conversation
DHowett
reviewed
May 11, 2026
Member
DHowett
left a comment
There was a problem hiding this comment.
this is much smarter. It looks like IslandWindow has support for fullscreen mode as well; should we propagate this change there, or is it not subject to the same issue?
(fwiw: that is the one we use when "show tabs in the titlebar" is turned off)
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a window's client area fully covers a monitor, Windows considers it a "fullscreen" window and drops the taskbar's always-on-top status. If Terminal is configured to hide the title bar, maximizing the window causes its client area to fully cover the monitor, triggering this behavior. This prevents the auto-hide taskbar from appearing when the user hovers over the edge of the screen (#1438).
To work around this, Terminal previously shrank the client area by 2 pixels if an auto-hide taskbar was detected. However, this creates a visible gap where the desktop or other applications show through the maximized window.
To fix this correctly, we set the "
NonRudeHWND" property on the window, which tells Windows to never treat Terminal as a "fullscreen" window. Of course, when the user enters actual fullscreen mode, we remove this property. This lets us remove the workaround and let Terminal's client area fully cover the monitor when maximized.Fixes #12959