"initialPosition" doesn't respect window frame size #14422

Closed
opened 2026-01-31 04:09:49 +00:00 by claunia · 6 comments
Owner

Originally created by @SirHesti on GitHub (Jul 8, 2021).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version (or Windows build number)

Version: 1.9.1523.0

Other Software

No response

Steps to reproduce

start wt with "initialPosition": "-1920,0", in the json.

Expected Behavior

start wt with position on the left Screen of 4

Actual Behavior

The Window appears ~8 Pixel left from the left side of the Screen

I have 4 Screens attached to my PC

1 2 3 4

3 is the main screen; the wt should appear on screen 2 Top Left.
If you reduce the value from -1920 to -1927, wt will be positioned on screen 1. the position -1927.0 is actually actually there. I have the feeling that the frame of the Windows is included in the calculation, but it is not there: ((

Originally created by @SirHesti on GitHub (Jul 8, 2021). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version (or Windows build number) Version: 1.9.1523.0 ### Other Software _No response_ ### Steps to reproduce start wt with "initialPosition": "-1920,0", in the json. ### Expected Behavior start wt with position on the left Screen of 4 ### Actual Behavior The Window appears ~8 Pixel left from the left side of the Screen I have 4 Screens attached to my PC 1 2 3 4 3 is the main screen; the wt should appear on screen 2 Top Left. If you reduce the value from -1920 to -1927, wt will be positioned on screen 1. the position -1927.0 is actually actually there. I have the feeling that the frame of the Windows is included in the calculation, but it is not there: ((
Author
Owner

@zadjii-msft commented on GitHub (Jul 8, 2021):

Okay that's a fair complaint. Kinda shocked that no one else has noticed this yet. Thanks!

@zadjii-msft commented on GitHub (Jul 8, 2021): Okay that's a fair complaint. Kinda shocked that no one else has noticed this yet. Thanks!
Author
Owner

@ondrix commented on GitHub (Aug 3, 2021):

I'm not sure this is the same issue but with initialPosition = "0,0" the terminal window opens like this
image

@ondrix commented on GitHub (Aug 3, 2021): I'm not sure this is the same issue but with `initialPosition = "0,0"` the terminal window opens like this ![image](https://user-images.githubusercontent.com/10441393/127971120-86253e56-6cd0-47f0-80f2-f2cf75f46b2f.png)
Author
Owner

@DHowett commented on GitHub (Aug 3, 2021):

That is indeed the same problem!

@DHowett commented on GitHub (Aug 3, 2021): That is indeed the same problem!
Author
Owner

@zadjii-msft commented on GitHub (Aug 3, 2021):

This is dangerously close to #10199 so I'm just gonna pull this into 1.11 while I've been looking at these

@zadjii-msft commented on GitHub (Aug 3, 2021): This is dangerously close to #10199 so I'm just gonna pull this into 1.11 while I've been looking at these
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

:tada:This issue was addressed in #10902, which has now been successfully released as Windows Terminal Preview v1.10.2383.0.🎉

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10902, which has now been successfully released as `Windows Terminal Preview v1.10.2383.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.10.2383.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

:tada:This issue was addressed in #10902, which has now been successfully released as Windows Terminal Preview v1.11.2421.0.🎉

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10902, which has now been successfully released as `Windows Terminal Preview v1.11.2421.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.11.2421.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14422