[PR #19580] Persist quake window size #31879

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

Original Pull Request: https://github.com/microsoft/terminal/pull/19580

State: open
Merged: No


Summary of the Pull Request

Adds state persistence logic for the quake window to remember its size.

Note

This PR addresses the first item in the linked checklist below.

References and Relevant Issues

Implementation Checklist

Detailed Description of the Pull Request / Additional comments

  • Added WM_EXITSIZEMOVE case to IslandWindow to check, calculate & store new quake window size
  • Added a global ApplicationState property of quakeWindowSizePercent to store & track resized values (defaults to 50%)
  • Updated AppHost to retrieve & store the saved size
    • In the if (_windowLogic.IsQuakeWindow()) block, the logic was updated to resolve an issue (see comments below)

Validation Steps Performed

Manual Testing (document in PR):

  • Open quake window (Win+<backtick>)
  • Resize the quake window vertically
  • Close and reopen the quake window (i.e. restart) → verify it remembers the size
  • Test on multi-monitor setup → verify size persists per monitor

PR Checklist

  • Closes #12594
    • the first item in the checklist linked above
  • Tests added/passed
    • unable to successfully run the tests; my machine is under powered
  • Documentation updated
    • If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated (if necessary)
**Original Pull Request:** https://github.com/microsoft/terminal/pull/19580 **State:** open **Merged:** No --- ## Summary of the Pull Request Adds state persistence logic for the quake window to remember its size. > [!NOTE] > This PR addresses the first item in the linked checklist below. ## References and Relevant Issues [Implementation Checklist](https://github.com/microsoft/terminal/issues/12594#issuecomment-3549069248) ## Detailed Description of the Pull Request / Additional comments - Added `WM_EXITSIZEMOVE` case to `IslandWindow` to check, calculate & store new quake window size - Added a global `ApplicationState` property of `quakeWindowSizePercent` to store & track resized values (defaults to 50%) - Updated `AppHost` to retrieve & store the saved size - In the `if (_windowLogic.IsQuakeWindow())` block, the logic was updated to resolve an issue (_see comments below_) ## Validation Steps Performed Manual Testing (document in PR): - Open quake window (`Win+<backtick>`) - Resize the quake window vertically - Close and reopen the quake window (_i.e. restart_) → verify it remembers the size - Test on multi-monitor setup → verify size persists per monitor ## PR Checklist - [x] Closes #12594 - the first item in the checklist linked above - [ ] Tests added/passed - unable to successfully run the tests; my machine is under powered - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:50:08 +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#31879