black rectangle on resize until changing windows (not always) rendering options, new display drivers dont fix it #23118

Closed
opened 2026-01-31 08:32:55 +00:00 by claunia · 12 comments
Owner

Originally created by @brandonholland on GitHub (Apr 5, 2025).

Windows Terminal version

1.21.3231.0

Windows build number

10.0.22631.4751

Other Software

No response

Steps to reproduce

On window resize

Expected Behavior

the black rectangle / background that is the command prompt (or powershell, say) background matches the resized window dimensions

Actual Behavior

An artifact background matching the old window size is left until you change windows or say drag a selection box through it

Originally created by @brandonholland on GitHub (Apr 5, 2025). ### Windows Terminal version 1.21.3231.0 ### Windows build number 10.0.22631.4751 ### Other Software _No response_ ### Steps to reproduce On window resize ### Expected Behavior the black rectangle / background that is the command prompt (or powershell, say) background matches the resized window dimensions ### Actual Behavior An artifact background matching the old window size is left until you change windows or say drag a selection box through it
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 08:32:56 +00:00
Author
Owner

@brandonholland commented on GitHub (Apr 5, 2025):

couple examples (not visible here but its not just background, includes other window contents from the previous size) this doesnt happen with any other windows say even conhost or powershell or any other windows

Image

Image

@brandonholland commented on GitHub (Apr 5, 2025): couple examples (not visible here but its not just background, includes other window contents from the previous size) this doesnt happen with any other windows say even conhost or powershell or any other windows ![Image](https://github.com/user-attachments/assets/18b0a6df-ad38-4734-a417-32a4ba9b36e7) ![Image](https://github.com/user-attachments/assets/ce48ff7a-126a-443e-b34e-4e9aa5896124)
Author
Owner

@brandonholland commented on GitHub (Apr 5, 2025):

oops it defaulted to closed, this is an open issue i just uploaded

@brandonholland commented on GitHub (Apr 5, 2025): oops it defaulted to closed, this is an open issue i just uploaded
Author
Owner

@brandonholland commented on GitHub (Apr 5, 2025):

I turn off show window contents when dragging, but with it enabled you might see several rectangles instead of one larger one as it repaints/refreshes through the mouse path

@brandonholland commented on GitHub (Apr 5, 2025): I turn off show window contents when dragging, but with it enabled you might see several rectangles instead of one larger one as it repaints/refreshes through the mouse path
Author
Owner

@brandonholland commented on GitHub (Apr 5, 2025):

example of two glitched rectangles with show contents enabled, one thin one right beside the right border Image

@brandonholland commented on GitHub (Apr 5, 2025): example of two glitched rectangles with show contents enabled, one thin one right beside the right border ![Image](https://github.com/user-attachments/assets/91f30ff3-6fb3-4fe7-8bab-1f99b1f251f6)
Author
Owner

@Zeroes1 commented on GitHub (Apr 7, 2025):

What video card and video drivers version?

@Zeroes1 commented on GitHub (Apr 7, 2025): What video card and video drivers version?
Author
Owner

@brandonholland commented on GitHub (Apr 7, 2025):

Laptop nvidia 4070 and the latest as well another one prior. But if it does it in software rendering and no display issues anywhere else?

@brandonholland commented on GitHub (Apr 7, 2025): Laptop nvidia 4070 and the latest as well another one prior. But if it does it in software rendering and no display issues anywhere else?
Author
Owner

@lhecker commented on GitHub (Apr 7, 2025):

We don't have any known issues with resizing or moving our swap chain (render target), but there are plenty prior cases of this exact issue happening due to DWM and driver issues.

I recommend updating to Windows 11 24H2 (build 26100) and doing a clean reinstall of the Nvidia driver version 566.36. It's important to do a clean reinstall. Coincidentally this video came out just today: https://www.youtube.com/watch?v=NTXoUsdSAnA&t=1262s

@lhecker commented on GitHub (Apr 7, 2025): We don't have any known issues with resizing or moving our swap chain (render target), but there are plenty prior cases of this exact issue happening due to DWM and driver issues. I recommend updating to Windows 11 24H2 (build 26100) and doing a *clean* reinstall of the Nvidia driver version 566.36. It's important to do a clean reinstall. Coincidentally this video came out just today: https://www.youtube.com/watch?v=NTXoUsdSAnA&t=1262s
Author
Owner

@brandonholland commented on GitHub (Apr 9, 2025):

I'm just trying to keep this straight. I had this issue not in any games, not in anywhere on the desktop, only in windows terminal...

So i had ALREADY had this issue on a previous driver version NOT the specific one I am using 572.83 BUT:

I still wanted to know for sure if there was any chance, and on 566.36 as well I'm still having the issue. That's 3 different driver versions of a display driver that only has issues in one place, Windows terminal and using software rendering (or not) any combinations of rendering options. Why is everyone thinking this is an nvidia issue?

@brandonholland commented on GitHub (Apr 9, 2025): I'm just trying to keep this straight. I had this issue not in any games, not in anywhere on the desktop, only in windows terminal... So i had ALREADY had this issue on a previous driver version NOT the specific one I am using 572.83 BUT: I still wanted to know for sure if there was any chance, and on 566.36 as well I'm still having the issue. That's 3 different driver versions of a display driver that only has issues in one place, Windows terminal and using software rendering (or not) any combinations of rendering options. Why is everyone thinking this is an nvidia issue?
Author
Owner

@lhecker commented on GitHub (Apr 9, 2025):

Not all that many applications use "Multi-Plane Overlays" (MPO), games in particular seldomly do. We use them to blend the terminal contents with the window contents (this is involuntary - we can't not do this).

I also had this issue for a while, because I have almost the exact same hardware. It also only happened to Windows Terminal, and even weirder it only happened on one of my two monitors. I never figured out what caused it because it went away after several driver and OS updates. Windows Terminal however didn't change throughout that period.

If it's a possibility for you, and if you don't mind doing so, I'd like to ask you to update to build 26100 (24H2) or later. If that doesn't fix your issue, let me know and I'll contact the DWM maintainers internally.

@lhecker commented on GitHub (Apr 9, 2025): Not all that many applications use "Multi-Plane Overlays" (MPO), games in particular seldomly do. We use them to blend the terminal contents with the window contents (this is involuntary - we can't not do this). I also had this issue for a while, because I have almost the exact same hardware. It also only happened to Windows Terminal, and even weirder it only happened on one of my two monitors. I never figured out what caused it because it went away after several driver and OS updates. Windows Terminal however didn't change throughout that period. If it's a possibility for you, and if you don't mind doing so, I'd like to ask you to update to build 26100 (24H2) or later. If that doesn't fix your issue, let me know and I'll contact the DWM maintainers internally.
Author
Owner

@brandonholland commented on GitHub (Apr 11, 2025):

Well on first look after upgrade it's improved it almost completely I'm getting only a 1 pixel border around the old window at worst and it doesn't seem as common

@brandonholland commented on GitHub (Apr 11, 2025): Well on first look after upgrade it's improved it almost completely I'm getting only a 1 pixel border around the old window at worst and it doesn't seem as common
Author
Owner

@brandonholland commented on GitHub (Apr 11, 2025):

I'm probably needing a lot more updates (?) so maybe it gets even better

@brandonholland commented on GitHub (Apr 11, 2025): I'm probably needing a lot more updates (?) so maybe it gets even better
Author
Owner

@DHowett commented on GitHub (Apr 16, 2025):

Thanks for confirming that it's improved! I'm going to close this out since the primary issue is resolved... but I'd be interested in seeing a photo of the extra 1px border if you have a chance.

@DHowett commented on GitHub (Apr 16, 2025): Thanks for confirming that it's improved! I'm going to close this out since the primary issue is resolved... but I'd be interested in seeing a photo of the extra 1px border if you have a chance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23118