HDPI issue: Windows Terminal scales everything down #11257

Closed
opened 2026-01-31 02:42:41 +00:00 by claunia · 8 comments
Owner

Originally created by @warpdesign on GitHub (Nov 2, 2020).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Microsoft Windows [version 10.0.19041.610]
Windows Terminal: 1.3.2651.0

Steps to reproduce

I am not sure how to reproduce, but I have an external monitor that's not HDPI connected to my Surface Dock. After some time, opened up the Surface and noticed the Windows Terminal window was incorrectly scaled: display is way too small, just like the terminal window was on the other screen.

Notice how other apps, like Edge, that were also opened previously are correctly scaled.

Note that if at this point I open a new Windows Terminal window, it will be scaled correctly.

More information:

  • internal monitor: 3000x2000 Surface Book screen, scale set to 200% in Windows settings app
  • external monitor (that was switched to another computer when this happens): 2560x1440, scale set to 100% in Windows Settings

To sum up:

  • I started a Windows Terminal that was opened on the internal screen of the Surface Book
  • the external monitor was used to extend Windows's desktop (but the WT window was still on the internal monitor)
  • then the Surface Book was put to sleep, and the monitor disconnected (by switching to another computer)
  • then I woke up the laptop, and the WT window appeared to use the scaling (100%) of the external monitor instead of the 200% of the monitor it is displayed on

Expected behavior

Scaling should be correct.

Actual behavior

Scaling is wrong.

  • left: this is how Windows Terminal looked after I opened up my laptop
  • right: this is how it's supposed to look after a fresh start

image

Originally created by @warpdesign on GitHub (Nov 2, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` Microsoft Windows [version 10.0.19041.610] Windows Terminal: 1.3.2651.0 # Steps to reproduce <!-- A description of how to trigger this bug. --> I am not sure how to reproduce, but I have an external monitor that's not HDPI connected to my Surface Dock. After some time, opened up the Surface and noticed the Windows Terminal window was incorrectly scaled: display is way too small, just like the terminal window was on the other screen. Notice how other apps, like Edge, that were also opened previously are correctly scaled. Note that if at this point I open a new Windows Terminal window, it will be scaled correctly. More information: - internal monitor: 3000x2000 Surface Book screen, scale set to 200% in Windows settings app - external monitor (that was switched to another computer when this happens): 2560x1440, scale set to 100% in Windows Settings To sum up: - I started a Windows Terminal that was opened on the internal screen of the Surface Book - the external monitor was used to extend Windows's desktop (but the WT window was still on the internal monitor) - then the Surface Book was put to sleep, and the monitor disconnected (by switching to another computer) - then I woke up the laptop, and the WT window appeared to use the scaling (100%) of the external monitor instead of the 200% of the monitor it is displayed on # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> Scaling should be correct. # Actual behavior Scaling is wrong. - left: this is how Windows Terminal looked after I opened up my laptop - right: this is how it's supposed to look after a fresh start ![image](https://user-images.githubusercontent.com/199648/97902966-a77b8500-1d3e-11eb-84f8-871a795ec037.png)
Author
Owner

@zadjii-msft commented on GitHub (Nov 2, 2020):

What happens if you just jiggle the size of the window a little bit - does it update to the correct scaling?

@zadjii-msft commented on GitHub (Nov 2, 2020): What happens if you just jiggle the size of the window a little bit - does it update to the correct scaling?
Author
Owner

@warpdesign commented on GitHub (Nov 2, 2020):

What happens if you just jiggle the size of the window a little bit - does it update to the correct scaling?

I tried moving it, resizing it, maximizing it: didn't change anything, it still using incorrect scaling.

@warpdesign commented on GitHub (Nov 2, 2020): > What happens if you just jiggle the size of the window a little bit - does it update to the correct scaling? I tried moving it, resizing it, maximizing it: didn't change anything, it still using incorrect scaling.
Author
Owner

@DHowett commented on GitHub (Nov 20, 2020):

Yep, this one is totally baffling. Thanks for all the info 😄

You're not using any scaling compatibility options, right? Does this happen all the time? Is this a one-off?

@DHowett commented on GitHub (Nov 20, 2020): Yep, this one is totally baffling. Thanks for all the info :smile: You're not using any scaling compatibility options, right? Does this happen all the time? Is this a one-off?
Author
Owner

@ghost commented on GitHub (Nov 24, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Nov 24, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@warpdesign commented on GitHub (Nov 24, 2020):

@DHowett This doesn't seem to happen all the time and I don't know what triggered it.

Not sure what you mean by scaling options but here are my display settings for the internal Surface Book screen (it's the default options, never touched them):

image

@warpdesign commented on GitHub (Nov 24, 2020): @DHowett This doesn't seem to happen all the time and I don't know what triggered it. Not sure what you mean by scaling options but here are my display settings for the internal Surface Book screen (it's the default options, never touched them): ![image](https://user-images.githubusercontent.com/199648/100084061-93610a00-2e4a-11eb-8326-6778b9c90fe1.png)
Author
Owner

@warpdesign commented on GitHub (Dec 8, 2020):

This happened to me again.

This may help: I noticed that when Terminal window has incorrect scaling, close/maximize/minimize buttons aren't working anymore (moving the mouse over them doesn't even highlight them). Only double-clicking on title bar works as expected to min/maximize window.

Video: https://www.youtube.com/watch?v=9nCT943hyU8&feature=youtu.be (front-most window is a new Terminal window I just opened that has correct scaling, the other one is the one opened before that has wrong scaling, and inctive maximize/minimize/close buttons)

@warpdesign commented on GitHub (Dec 8, 2020): This happened to me again. This may help: I noticed that when Terminal window has incorrect scaling, close/maximize/minimize buttons aren't working anymore (moving the mouse over them doesn't even highlight them). Only double-clicking on title bar works as expected to min/maximize window. Video: https://www.youtube.com/watch?v=9nCT943hyU8&feature=youtu.be (front-most window is a new Terminal window I just opened that has correct scaling, the other one is the one opened before that has wrong scaling, and inctive maximize/minimize/close buttons)
Author
Owner

@DHowett commented on GitHub (Jul 2, 2021):

Unfortunately, we still haven't been able to reproduce this. How regularly does it happen for you?

(Sorry for the delay here -- it's been busy with Windows 11 ;P)

@DHowett commented on GitHub (Jul 2, 2021): Unfortunately, we still haven't been able to reproduce this. How regularly does it happen for you? (Sorry for the delay here -- it's been busy with Windows 11 ;P)
Author
Owner

@ghost commented on GitHub (Jul 6, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Jul 6, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11257