[PR #10902] [MERGED] Account for the window frame when calculating initial position #28286

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10902
Author: @zadjii-msft
Created: 8/9/2021
Status: Merged
Merged: 8/9/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/10583-initialPosition00


📝 Commits (2)

📊 Changes

5 files changed (+58 additions, -13 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/AppHost.cpp (+7 -2)
📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+24 -5)
📝 src/cascadia/WindowsTerminal/IslandWindow.h (+1 -0)
📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp (+25 -6)
📝 src/cascadia/WindowsTerminal/NonClientIslandWindow.h (+1 -0)

📄 Description

Summary of the Pull Request

Turns out, we'd only ever use the non-client size to calculate the size of the window, but not the actual position. As we learned in #10676, the nonclient area extends a few pixels past the visible borders of the window.

PR Checklist

Validation Steps Performed

  • Works with the IslandWindow
  • Works with the NonClientIslandWindow

🔄 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/10902 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 8/9/2021 **Status:** ✅ Merged **Merged:** 8/9/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/10583-initialPosition00` --- ### 📝 Commits (2) - [`81fe890`](https://github.com/microsoft/terminal/commit/81fe8906041569dee8011b420c9c4a7898c8c730) I believe this fixes #10583 - [`1f6099b`](https://github.com/microsoft/terminal/commit/1f6099b97c482dcc3e0f3944b648f6381ba2ae15) typos ### 📊 Changes **5 files changed** (+58 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+7 -2) 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+24 -5) 📝 `src/cascadia/WindowsTerminal/IslandWindow.h` (+1 -0) 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp` (+25 -6) 📝 `src/cascadia/WindowsTerminal/NonClientIslandWindow.h` (+1 -0) </details> ### 📄 Description ## Summary of the Pull Request Turns out, we'd only ever use the non-client size to calculate the size of the window, but not the actual position. As we learned in #10676, the nonclient area extends a few pixels past the visible borders of the window. ## PR Checklist * [x] Closes #10583 * [x] Closes #4246 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * [x] Works with the `IslandWindow` * [x] Works with the `NonClientIslandWindow` --- <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:27:31 +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#28286