terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Quake mode drop-down doesn't go back to the maximum width after opening windows copilot

Open sharunkumar opened this issue 2 years ago • 1 comments

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

sharunkumar avatar Sep 29 '23 21:09 sharunkumar

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

zadjii-msft avatar Oct 05 '23 11:10 zadjii-msft