[PR #3301] fix latent DPI issues with the WPF control #25313

Open
opened 2026-01-31 09:08:41 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3301

State: closed
Merged: Yes


Summary of the Pull Request

The WPF control incorrectly assumed that it would receive DPI changed events when launched on a screen with a non-default DPI. This turned out not to be the case so instead we manually get the current DPI when sending size information to the native control.

Validation Steps Performed

Patched the VS terminal and verified that on 125% DPI the control was sized correctly.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3301 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request The WPF control incorrectly assumed that it would receive DPI changed events when launched on a screen with a non-default DPI. This turned out not to be the case so instead we manually get the current DPI when sending size information to the native control. ## Validation Steps Performed Patched the VS terminal and verified that on 125% DPI the control was sized correctly.
claunia added the pull-request label 2026-01-31 09:08:41 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25313