[PR #10737] [MERGED] Account for the window borders when restoring from fullscreen #28205

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10737
Author: @zadjii-msft
Created: 7/20/2021
Status: Merged
Merged: 7/28/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/10199-fullscreen-jiggles-quake-mode


📝 Commits (2)

📊 Changes

1 file changed (+24 additions, -8 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/IslandWindow.cpp (+24 -8)

📄 Description

Summary of the Pull Request

When we're restoring from fullscreen, we do a little adjustment to make sure to clamp the window bounds within the bounds of the active monitor. We unfortunately didn't account for the size of the non-client area (the invisible borders around our 1px border). This didn't matter most of the time, but if the window was within ~8px of the side of the monitor (any side), then restoring from fullscreen would actually move it to the wrong place.

As it turns out, the _quake window is within ~8px of the edges of the monitor very often.

References

PR Checklist

Validation Steps Performed

The repro in the bug was fairly straightforward. It doesn't happen anymore.


🔄 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/10737 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 7/20/2021 **Status:** ✅ Merged **Merged:** 7/28/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/10199-fullscreen-jiggles-quake-mode` --- ### 📝 Commits (2) - [`67309f0`](https://github.com/microsoft/terminal/commit/67309f0cfd94bfa147a6ee0be389439544f9cabc) Fixes #10199 - [`e05747a`](https://github.com/microsoft/terminal/commit/e05747a04de48f6982e017a17dbfac7a3dc5e095) okay MOM ### 📊 Changes **1 file changed** (+24 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/IslandWindow.cpp` (+24 -8) </details> ### 📄 Description ## Summary of the Pull Request When we're restoring from fullscreen, we do a little adjustment to make sure to clamp the window bounds within the bounds of the active monitor. We unfortunately didn't account for the size of the non-client area (the invisible borders around our 1px border). This didn't matter most of the time, but if the window was within ~8px of the side of the monitor (any side), then restoring from fullscreen would actually move it to the wrong place. As it turns out, the `_quake` window is within ~8px of the edges of the monitor _very often_. ## References * regressed in #9737 ## PR Checklist * [x] Closes #10199 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed The repro in the bug was fairly straightforward. It doesn't happen anymore. --- <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:00 +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#28205