initialPosition doesn't use coordinates properly #5963

Closed
opened 2026-01-31 00:26:34 +00:00 by claunia · 10 comments
Owner

Originally created by @cinnamon-msft on GitHub (Jan 15, 2020).

Environment

Windows build number: 10.0.19041.0
Windows Terminal version (if applicable): 0.8.10091.0

Any other software?

Steps to reproduce

Set initialPosition to 0,0 using one monitor.

Expected behavior

Terminal launches in the top left corner of the screen.

Actual behavior

Terminal launches in the top, but not in the left corner exactly.
image

Originally created by @cinnamon-msft on GitHub (Jan 15, 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: 10.0.19041.0 Windows Terminal version (if applicable): 0.8.10091.0 Any other software? ``` # Steps to reproduce Set `initialPosition` to 0,0 using one monitor. # Expected behavior Terminal launches in the top left corner of the screen. # Actual behavior Terminal launches in the top, but not in the left corner exactly. ![image](https://user-images.githubusercontent.com/48369326/72462108-25a57580-3785-11ea-8e74-17a9ea9e69ef.png)
Author
Owner

@angelog0 commented on GitHub (Jan 15, 2020):

BTW, where is initialPosition documented? Shouldn't it be described here?

Thanks..

@angelog0 commented on GitHub (Jan 15, 2020): BTW, where is `initialPosition` documented? Shouldn't it be described [here](https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md)? Thanks..
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 16, 2020):

That looks suspiciously like the 7px shadow cast off the edge of the window 😉

@DHowett-MSFT commented on GitHub (Jan 16, 2020): That looks suspiciously like the 7px shadow cast off the edge of the window 😉
Author
Owner

@UweKeim commented on GitHub (Jun 23, 2020):

I'm also urgently looking for finally being able to set it pixel-perfect at 0,0.

Also specifing the width and height in pixels instead of columns and rows would be helpful for compensating the lack of being able to start docked to the left half of my monitor.

@UweKeim commented on GitHub (Jun 23, 2020): I'm also urgently looking for finally being able to set it pixel-perfect at `0,0`. Also specifing the width and height in pixels instead of [columns and rows](https://github.com/MicrosoftDocs/terminal/blob/8fa6e80c03e2664b085fa196c684260b32d14c43/TerminalDocs/customize-settings/global-settings.md#columns-on-first-launch) would be helpful for compensating the lack of being able to start docked to the left half of my monitor.
Author
Owner

@DHowett commented on GitHub (Jun 23, 2020):

initialPosition is in pixels! This bug is caused by the OS lying about the size of the window’s borders subtly 😄

@DHowett commented on GitHub (Jun 23, 2020): `initialPosition` _is_ in pixels! This bug is caused by the OS lying about the size of the window’s borders subtly :smile:
Author
Owner

@UweKeim commented on GitHub (Jun 23, 2020):

Thanks, @DHowett, I know. I was refering to the width and height in my second sentence.

Regarding the bug, I'm fighting these "wrong" positions and dimensions since years.

@UweKeim commented on GitHub (Jun 23, 2020): Thanks, @DHowett, I know. I was refering to the **width** and **height** in my second sentence. Regarding the bug, [I'm fighting these "wrong" positions and dimensions since years](https://stackoverflow.com/q/16484894/107625).
Author
Owner

@MenaceInc commented on GitHub (Aug 12, 2021):

Having problems with this as well.
Trying negative values has worked in the past for the likes of Chrome but it doesn't do anything for WT.

@MenaceInc commented on GitHub (Aug 12, 2021): Having problems with this as well. Trying negative values has worked in the past for the likes of Chrome but it doesn't do anything for WT.
Author
Owner

@UweKeim commented on GitHub (Aug 12, 2021):

I ended up installing "Display Fusion" (paid version) and added a rule to automatically and pixel-perfect position the Windows Terminal window upon start.

@UweKeim commented on GitHub (Aug 12, 2021): I ended up installing "[Display Fusion](https://www.displayfusion.com/)" (paid version) and added a rule to automatically and pixel-perfect position the Windows Terminal window upon start.
Author
Owner

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

Oh my gosh, #10583 was a dupe of this one all along. This should be fixed by #10902 and released in 1.11. Thanks everyone!

@zadjii-msft commented on GitHub (Aug 12, 2021): Oh my gosh, #10583 was a dupe of this one all along. This should be fixed by #10902 and released in 1.11. Thanks everyone!
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#5963