Dragging Terminal window between displays of different scaling results in cropped UI #15565

Closed
opened 2026-01-31 04:42:11 +00:00 by claunia · 1 comment
Owner

Originally created by @flcdrg on GitHub (Oct 18, 2021).

Windows Terminal version (or Windows build number)

1.10.2714.0

Other Software

No response

Steps to reproduce

Given a system with multiple displays:

image

Where display 1 is 3840x2160 at 300% scaling, and display 2 is 3840x2160 at 150% scaling.

Display 2 is set to the default desktop display.

I open Terminal on display 2, it looks correct.

eg.

image

If I then drag the Terminal window to display 1, it seems to crop the rendering of the window content.

image

Clearing content (eg. by using cls) does not have any effect.

image

Resizing the Terminal window while on display 1 does seem to be enough to trigger a repaint/refresh and the full content is then shown.

Expected Behavior

Content would render fully regardless of display

Actual Behavior

Content is cropped when viewed on second display

Originally created by @flcdrg on GitHub (Oct 18, 2021). ### Windows Terminal version (or Windows build number) 1.10.2714.0 ### Other Software _No response_ ### Steps to reproduce Given a system with multiple displays: ![image](https://user-images.githubusercontent.com/384747/137669349-62d83964-0d22-4a93-bdb2-76e6dcf81c2f.png) Where display 1 is 3840x2160 at 300% scaling, and display 2 is 3840x2160 at 150% scaling. Display 2 is set to the default desktop display. I open Terminal on display 2, it looks correct. eg. ![image](https://user-images.githubusercontent.com/384747/137669853-6466bde1-8836-400b-9b2c-13a0ad156cc9.png) If I then drag the Terminal window to display 1, it seems to crop the rendering of the window content. ![image](https://user-images.githubusercontent.com/384747/137669877-5d971905-cc98-4daf-8df0-45d3d13a7154.png) Clearing content (eg. by using `cls`) does not have any effect. ![image](https://user-images.githubusercontent.com/384747/137670179-0d3925c3-070e-4ed4-9725-5ba2ea633d20.png) Resizing the Terminal window while on display 1 does seem to be enough to trigger a repaint/refresh and the full content is then shown. ### Expected Behavior Content would render fully regardless of display ### Actual Behavior Content is cropped when viewed on second display
claunia added the Needs-TriageNeeds-Tag-FixResolution-Duplicate labels 2026-01-31 04:42:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 18, 2021):

Huh. What the devil is going on here. We've seen this recently before, in #11317. I'm inclined to merge the threads, though you have a really good smoking gun here with the text literally cropped in the middle of the screen. So it's like the text did get resized for the new DPI, but either the swapchainpanel didn't get resized, or the internal dxengine's rendering size didn't get refreshed? Weird.

I'm gonna combine the two threads for tracking purposes /dup #11317

@zadjii-msft commented on GitHub (Oct 18, 2021): Huh. What the devil is going on here. We've seen this recently before, in #11317. I'm inclined to merge the threads, though you have a really good smoking gun here with the text literally cropped in the middle of the screen. So it's like the text did get resized for the new DPI, but either the swapchainpanel didn't get resized, or the internal dxengine's rendering size didn't get refreshed? Weird. I'm gonna combine the two threads for tracking purposes /dup #11317
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15565