Quake mode drop-down doesn't handle SPI_SETWORKAREA #20581

Open
opened 2026-01-31 07:18:18 +00:00 by claunia · 1 comment
Owner

Originally created by @sharunkumar on GitHub (Sep 29, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

  • Open windows Copilot preview while quake mode is open
  • Close Windows Copilot
  • Open / Close Quake mode using the hotkey (win+`)

Expected Behavior

No response

Actual Behavior

Screenshot

Screenshot

Originally created by @sharunkumar on GitHub (Sep 29, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce - Open windows Copilot preview while quake mode is open - Close Windows Copilot - Open / Close Quake mode using the hotkey (win+`) ### Expected Behavior _No response_ ### Actual Behavior ![Screenshot](https://github.com/microsoft/terminal/assets/715417/cbc48fe6-7030-45dd-9207-5411968cd8c0) ![Screenshot](https://github.com/microsoft/terminal/assets/715417/dfa52c85-8387-4f11-9a2b-fd11c5dd4beb)
claunia added the Help WantedIssue-BugProduct-TerminalArea-Windowing labels 2026-01-31 07:18:19 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 5, 2023):

Yep, this is real. MSFT:46421646 internally.

Looks like Copilot is changing the work area. Apparently as part of the design, when the work area changes back to the original1 , Windows doesn't resize apps back. From the thread, this seems like a good design.

We need to listen for WM_SETTINGCHANGE where wparam = SPI_SETWORKAREA, and use that to recalculate our snapped size. Shouldn't be too hard.


  1. grows in size? It's unclear what exactly the difference in the shrink vs grow is ↩︎

@zadjii-msft commented on GitHub (Oct 5, 2023): Yep, this is real. MSFT:46421646 internally. Looks like Copilot is changing the work area. Apparently as part of the design, when the work area changes _back_ to the original[^1], Windows doesn't resize apps back. From the thread, this seems like a good design. We need to listen for `WM_SETTINGCHANGE` where `wparam = SPI_SETWORKAREA`, and use that to recalculate our snapped size. Shouldn't be too hard. [^1]: grows in size? It's unclear what exactly the difference in the shrink vs grow is
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20581