terminal/src/cascadia/WindowsTerminal
Mike Griese f058b08fde
Account for the window borders when restoring from fullscreen (#10737)
## 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.
2021-07-28 22:18:58 +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 Account for the window borders when restoring from fullscreen (#10737) 2021-07-28 22:18:58 +00:00
IslandWindow.h Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +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