[PR #15179] [MERGED] Actually use the persisted position with centerOnLaunch:true #30483

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15179
Author: @zadjii-msft
Created: 4/13/2023
Status: Merged
Merged: 4/14/2023
Merged by: @DHowett

Base: mainHead: dev/migrie/b/restore-with-centerOnLaunch


📝 Commits (1)

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalApp/TerminalWindow.cpp (+11 -1)

📄 Description

Fixes an issue when using both:

    "centerOnLaunch": true,
    "firstWindowPreference": "persistedWindowLayout",

In this case, the Terminal would ignore the persisted location and still just center on launch. This has been really annoying while testing tear-out, as we keep re-opening all my debug windows as a stack on top of each other.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15179 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 4/13/2023 **Status:** ✅ Merged **Merged:** 4/14/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/migrie/b/restore-with-centerOnLaunch` --- ### 📝 Commits (1) - [`62b5d1b`](https://github.com/microsoft/terminal/commit/62b5d1bf7fd4412943fd6a16a00cfb06ea163630) Revert "this snuck in" ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/TerminalWindow.cpp` (+11 -1) </details> ### 📄 Description Fixes an issue when using both: ```json "centerOnLaunch": true, "firstWindowPreference": "persistedWindowLayout", ``` In this case, the Terminal would ignore the persisted location and still just center on launch. This has been really annoying while testing tear-out, as we keep re-opening all my debug windows as a stack on top of each other. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:05 +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#30483