eventualy maximized terminal starts behaving like full-screen one #20992

Open
opened 2026-01-31 07:29:57 +00:00 by claunia · 10 comments
Owner

Originally created by @luxferre on GitHub (Dec 15, 2023).

Windows Terminal version

1.19.3172.0

Windows build number

10.0.22621.2861

Other Software

WSL

Steps to reproduce

Unknown. Sometimes reproduses after wakeup, sometimes if secondary display is connected/disconnected, sometimes no noticeable trigger.

Expected Behavior

  1. Maximized window does not overlaps autohiding taskbar
  2. Maximized window does not initiates do-not-disturb mode

Actual Behavior

  1. Minimized taskbar is overlapped by Terminal window and does not show up with mouse cursor.
  2. Windows enables do-not-disturb mode as for full-screen gaming app.

Screenshot to show DND mode, taskbar here is shown by pressing Win key:
image

Originally created by @luxferre on GitHub (Dec 15, 2023). ### Windows Terminal version 1.19.3172.0 ### Windows build number 10.0.22621.2861 ### Other Software WSL ### Steps to reproduce Unknown. Sometimes reproduses after wakeup, sometimes if secondary display is connected/disconnected, sometimes no noticeable trigger. ### Expected Behavior 1. Maximized window does not overlaps autohiding taskbar 2. Maximized window does not initiates do-not-disturb mode ### Actual Behavior 1. Minimized taskbar is overlapped by Terminal window and does not show up with mouse cursor. 2. Windows enables do-not-disturb mode as for full-screen gaming app. Screenshot to show DND mode, taskbar here is shown by pressing Win key: ![image](https://github.com/microsoft/terminal/assets/965870/ff9d40c5-17b5-417e-84a8-0316f3fae7e4)
claunia added the Issue-BugPriority-3Needs-ReproProduct-TerminalArea-Windowing labels 2026-01-31 07:29:57 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2023):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (Dec 15, 2023): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Open similar issues: - [Show/Hide maximized terminal window resizes it briefly (#12944)](https://github.com/microsoft/terminal/issues/12944), similarity score: 0.82 ### Closed similar issues: - [Terminal doesn't remember maximized, focus, fullscreen states (#11426)](https://github.com/microsoft/terminal/issues/11426), similarity score: 0.84 - [Can't maximize terminal after latest update (0.10.761.0) (#5009)](https://github.com/microsoft/terminal/issues/5009), similarity score: 0.81 - [Sometimes terminal isn't rendering after maximize from taskbar (#3692)](https://github.com/microsoft/terminal/issues/3692), similarity score: 0.81 - [Cursor position moves into the content when Terminal window is maximized (#11745)](https://github.com/microsoft/terminal/issues/11745), similarity score: 0.80 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@luxferre commented on GitHub (Dec 15, 2023):

Hi, bot! I have none of mentioned similar issues, thank you

15 дек. 2023 г., в 10:01, github-actions[bot] @.***> написал(а):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Show/Hide maximized terminal window resizes it briefly (#12944) https://github.com/microsoft/terminal/issues/12944, similarity score: 0.82
Closed similar issues:

Terminal doesn't remember maximized, focus, fullscreen states (#11426) https://github.com/microsoft/terminal/issues/11426, similarity score: 0.84
Can't maximize terminal after latest update (0.10.761.0) (#5009) https://github.com/microsoft/terminal/issues/5009, similarity score: 0.81
Sometimes terminal isn't rendering after maximize from taskbar (#3692) https://github.com/microsoft/terminal/issues/3692, similarity score: 0.81
Cursor position moves into the content when Terminal window is maximized (#11745) https://github.com/microsoft/terminal/issues/11745, similarity score: 0.80
Note: You can give me feedback by thumbs upping or thumbs downing this comment.


Reply to this email directly, view it on GitHub https://github.com/microsoft/terminal/issues/16476#issuecomment-1857326287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHLZ3VOOMEHRZ3JB2L3SQLYJPRVHAVCNFSM6AAAAABAV6GJJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXGMZDMMRYG4.
You are receiving this because you authored the thread.

@luxferre commented on GitHub (Dec 15, 2023): Hi, bot! I have none of mentioned similar issues, thank you > 15 дек. 2023 г., в 10:01, github-actions[bot] ***@***.***> написал(а): > > > Hi I'm an AI powered bot that finds similar issues based off the issue title. > > Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! > > Open similar issues: > > Show/Hide maximized terminal window resizes it briefly (#12944) <https://github.com/microsoft/terminal/issues/12944>, similarity score: 0.82 > Closed similar issues: > > Terminal doesn't remember maximized, focus, fullscreen states (#11426) <https://github.com/microsoft/terminal/issues/11426>, similarity score: 0.84 > Can't maximize terminal after latest update (0.10.761.0) (#5009) <https://github.com/microsoft/terminal/issues/5009>, similarity score: 0.81 > Sometimes terminal isn't rendering after maximize from taskbar (#3692) <https://github.com/microsoft/terminal/issues/3692>, similarity score: 0.81 > Cursor position moves into the content when Terminal window is maximized (#11745) <https://github.com/microsoft/terminal/issues/11745>, similarity score: 0.80 > Note: You can give me feedback by thumbs upping or thumbs downing this comment. > > — > Reply to this email directly, view it on GitHub <https://github.com/microsoft/terminal/issues/16476#issuecomment-1857326287>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHLZ3VOOMEHRZ3JB2L3SQLYJPRVHAVCNFSM6AAAAABAV6GJJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXGMZDMMRYG4>. > You are receiving this because you authored the thread. >
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2024):

Hmm. Having more consistent repro steps would definitely help investigate this. I know that the auto-hide taskbar is really peculiar in the way it behaves with secondary displays. Perhaps if the terminal started maximized on the secondary display, then that was disconnected, and the Terminal restored on the main display, it might to cover the taskbar on the primary/?

But I think we'll need something more concrete here to be able to look into this further 😕

@zadjii-msft commented on GitHub (Jan 3, 2024): Hmm. Having more consistent repro steps would definitely help investigate this. I know that the auto-hide taskbar is _really peculiar_ in the way it behaves with secondary displays. Perhaps if the terminal started maximized on the secondary display, then that was disconnected, and the Terminal restored on the main display, it might to cover the taskbar on the primary/? But I think we'll need something more concrete here to be able to look into this further 😕
Author
Owner

@luxferre commented on GitHub (Jan 11, 2024):

not complete! too tight bot timings!

@luxferre commented on GitHub (Jan 11, 2024): not complete! too tight bot timings!
Author
Owner

@luxferre commented on GitHub (Jan 11, 2024):

100% reproducable:

  • setup:
    • Windows 11 Home 22H2 22621.3007
    • 2 displays:
    • main, scale 100%, taskbar enabled with autohiding
    • secondary, scale 200%, no taskbar
    • auto-enabling do-not-disturb mode enabled for notifications is turned on for:
      • gaming
      • full-screen apps
  • steps:
    • minimize all windows (via Win+D or Win+Comma+click)
    • switch to terminal window (via taskbar or Alt+Tab)
  • steps to restore expected behaviour: toggle back and forth terminal's window maximizing in window header top right icons

0% reproducable:

  • setup:
    • Windows 11 Pro 23H2 22263.3007
    • 1 display (laptop internal), 200% scale factor
  • steps: the same

I'll add steps the unrestorable state (no way to have terminal maximized with taskbar autoshowing with mouse pointer, except reboot or mb restart shell) repro if encountered again

@luxferre commented on GitHub (Jan 11, 2024): 100% reproducable: - setup: - Windows 11 Home 22H2 22621.3007 - 2 displays: - main, scale 100%, taskbar enabled with autohiding - secondary, scale 200%, no taskbar - auto-enabling do-not-disturb mode enabled for notifications is turned on for: - gaming - full-screen apps - steps: - minimize all windows (via Win+D or Win+Comma+click) - switch to terminal window (via taskbar or Alt+Tab) - steps to restore expected behaviour: toggle back and forth terminal's window maximizing in window header top right icons 0% reproducable: - setup: - Windows 11 Pro 23H2 22263.3007 - 1 display (laptop internal), 200% scale factor - steps: the same I'll add steps the unrestorable state (no way to have terminal maximized with taskbar autoshowing with mouse pointer, except reboot or mb restart shell) repro if encountered again
Author
Owner

@luxferre commented on GitHub (Jan 11, 2024):

may be it is more related to "game" and not to maximizing/autohiding/secondary display, because autohidden taskbar's 1
-pixel line is hidden in full-screen games (as it should)

@luxferre commented on GitHub (Jan 11, 2024): may be it is more related to "game" and not to maximizing/autohiding/secondary display, because autohidden taskbar's 1 -pixel line is hidden in full-screen games (as it should)
Author
Owner

@gh-log commented on GitHub (Feb 8, 2024):

same here
Terminal (Portable)
Version: 1.19.240130002

Windows 11 23h2 22631.3085

@gh-log commented on GitHub (Feb 8, 2024): same here Terminal (Portable) Version: 1.19.240130002 Windows 11 23h2 22631.3085
Author
Owner

@luxferre commented on GitHub (Feb 13, 2024):

sometimes maximized terminal falls into that mode for unknown trigger, sometimes when display turned off/on due to powersaving timeouts

@luxferre commented on GitHub (Feb 13, 2024): sometimes maximized terminal falls into that mode for unknown trigger, sometimes when display turned off/on due to powersaving timeouts
Author
Owner

@luxferre commented on GitHub (Feb 28, 2024):

It seems like the behaviour is not Terminal-specific: just got the same with Brave browser maximized on sidescreen (display restarts sometimes due static electricity discharges nearby).
But some apps does never behave like this, e.g. PhpStorm.

@luxferre commented on GitHub (Feb 28, 2024): It seems like the behaviour is not Terminal-specific: just got the same with Brave browser maximized on sidescreen (display restarts sometimes due static electricity discharges nearby). But some apps does never behave like this, e.g. PhpStorm.
Author
Owner

@zadjii-msft commented on GitHub (Nov 18, 2025):

Hmm

            // Prevent Windows from going into do-not-disturb mode when this window is fullscreen.
            ::SetProp(window, L"NonRudeHWND", reinterpret_cast<HANDLE>(TRUE));

https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist2-markfullscreenwindow

Setting the value of fFullscreen to TRUE, the Shell treats this window as a full-screen window, and the taskbar is moved to the bottom of the z-order when this window is active. Setting the value of fFullscreen to FALSE removes the full-screen marking, but does not cause the Shell to treat the window as though it were definitely not full-screen. With a FALSE fFullscreen value, the Shell depends on its automatic detection facility to specify how the window should be treated, possibly still flagging the window as full-screen.

Since Windows 7, call SetProp(hwnd, L”NonRudeHWND”, reinterpret_cast(TRUE)) before showing a window to indicate to the Shell that the window should not be treated as full-screen. This ensures the taskbar does not adjust itself to be below the window in z-order. This is similar to ITaskbarList2::MarkFullscreenWindow(FALSE) except the Shell will not fallback to its automatic detection facility and will not treat the window as full-screen.

@zadjii-msft commented on GitHub (Nov 18, 2025): Hmm > ```c++ > // Prevent Windows from going into do-not-disturb mode when this window is fullscreen. > ::SetProp(window, L"NonRudeHWND", reinterpret_cast<HANDLE>(TRUE)); > ``` https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist2-markfullscreenwindow > Setting the value of fFullscreen to TRUE, the Shell treats this window as a full-screen window, and the taskbar is moved to the bottom of the z-order when this window is active. Setting the value of fFullscreen to FALSE removes the full-screen marking, but does not cause the Shell to treat the window as though it were definitely not full-screen. With a FALSE fFullscreen value, the Shell depends on its automatic detection facility to specify how the window should be treated, possibly still flagging the window as full-screen. > > Since Windows 7, call SetProp(hwnd, L”NonRudeHWND”, reinterpret_cast<HANDLE>(TRUE)) before showing a window to indicate to the Shell that the window should not be treated as full-screen. This ensures the taskbar does not adjust itself to be below the window in z-order. This is similar to ITaskbarList2::MarkFullscreenWindow(FALSE) except the Shell will not fallback to its automatic detection facility and will not treat the window as full-screen. > >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20992