terminal/src/cascadia/WindowsTerminal
Mike Griese a151607c79
Recalculate quake window size when snapping across monitors (#10744)
## Summary of the Pull Request

<kbd>win+shift+arrows</kbd> can be used to move windows to adjacent monitors. When that happens, we'll new re-calculate the size of the window for the new monitor.

## References
* megathread: #8888

## PR Checklist
* [x] Closes #10274
* [x] I work here
* [ ] Tests added/passed
* [n/a] Requires documentation to be updated

## Detailed Description of the Pull Request / Additional comments

In `WM_WINDOWPOSCHANGING`, the OS says "hey, I'm about to do {something} to your window. You cool with that?". We handle that message by:
1. checking if the window was _moved_ as a part of this message
2. getting the monitor that the window will be moved onto
3. If that monitor is different than the monitor the window is currently on, then
  * calculate how big the quake window should be on that monitor
  * tell the OS that's where we'd like to be.

## Validation Steps Performed

* <kbd>win+shift+arrows</kbd> works right now
* normal quake summoning still works right
2021-08-02 19:42:57 +00:00
..
AppHost.cpp Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +00:00
AppHost.h Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +00:00
BaseWindow.h Add tray icon when quake window is minimized (#10179) 2021-07-08 08:25:43 -07:00
CustomWindowMessages.h Add tray icon when quake window is minimized (#10179) 2021-07-08 08:25:43 -07:00
icon.cpp Add tray icon when quake window is minimized (#10179) 2021-07-08 08:25:43 -07:00
icon.h Add tray icon when quake window is minimized (#10179) 2021-07-08 08:25:43 -07:00
IslandWindow.cpp Recalculate quake window size when snapping across monitors (#10744) 2021-08-02 19:42:57 +00:00
IslandWindow.h Recalculate quake window size when snapping across monitors (#10744) 2021-08-02 19:42:57 +00:00
main.cpp Add support for running a commandline in another WT window (#8898) 2021-02-10 11:28:09 +00:00
NonClientIslandWindow.cpp Shift the island up by 1px when maximized (#10746) 2021-07-28 22:15:22 +00:00
NonClientIslandWindow.h Add support for focus mode (#6804) 2020-07-13 17:40:20 +00:00
packages.config Update Xaml Toolkit App Host to 6.1.3 (#10640) 2021-07-12 22:58:02 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Add tray icon when quake window is minimized (#10179) 2021-07-08 08:25:43 -07:00
resource.h Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
VirtualDesktopUtils.cpp Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
VirtualDesktopUtils.h Add desktop param to globalSummon; set _quake = toCurrent (#9954) 2021-04-28 17:25:48 -05:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest Restore embedded manifests to say 18362 (#10370) 2021-06-09 16:23:26 +00:00
WindowsTerminal.rc Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
WindowsTerminal.vcxproj Update Xaml Toolkit App Host to 6.1.3 (#10640) 2021-07-12 22:58:02 +00:00