terminal/src/cascadia/WindowsTerminal
Mike Griese ba8bd006f4
Add centerOnLaunch setting (#9036)
This PR is a resurrection of #8414. @Hegunumo has apparently deleted
their account, but the contribution was still valuable. I'm just here to
get it across the finish line.

This PR adds new global setting `centerOnLaunch`. When set to `true`,
the Terminal window will be centered on the display it opens on. 

So the interactions are like:

* `initialPos: x,y`, `centered: true`, `launchMode: default`
  center on the monitor that x,y is on 

* `initialPos: x,y`, `centered: true`, `launchMode: maximized`
  maximized on the monitor that x,y is on (centered adds nothing)

* `initialPos: <omitted>`, `centered: true`, `launchMode: default`
  center on the default monitor

* `initialPos: <omitted>`, `centered: true`, `launchMode: focus`
  center, focus mode on the default monitor

* `initialPos: <omitted>`, `centered: true`, `launchMode: maximized`
  maximized on the default monitor (centered adds nothing)

## Validation Steps Performed
I've played with it on multiple different monitors, and it seems to work
on all of them.

Closes #8414 (original PR)
Closes #7722 

Co-authored-by: Kiminori Kaburagi <yukawa_hidenori@icloud.com>
2021-02-19 22:30:24 +00:00
..
AppHost.cpp Add centerOnLaunch setting (#9036) 2021-02-19 22:30:24 +00:00
AppHost.h Add support for the windowingBehavior setting (#9118) 2021-02-19 21:09:17 +00:00
BaseWindow.h Tie up some A11y loose threads (#6417) 2020-06-10 15:15:26 +00:00
icon.cpp Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
icon.h Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
IslandWindow.cpp Force activate existing windows when running a commandline in them (#9137) 2021-02-17 21:37:22 +00:00
IslandWindow.h Force activate existing windows when running a commandline in them (#9137) 2021-02-17 21:37:22 +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 7012: top margin disappears upon resize in focus mode (#8140) 2020-11-03 17:40:02 +00:00
NonClientIslandWindow.h Add support for focus mode (#6804) 2020-07-13 17:40:20 +00:00
packages.config Update Win32 Toolkit (6.1.2) and VCRT Forwarders (1.0.4) (#8501) 2020-12-10 01:30:00 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Force activate existing windows when running a commandline in them (#9137) 2021-02-17 21:37:22 +00:00
resource.h Update WT's icon at runtime to match high-contrast as applicable (#7971) 2020-10-28 00:39:38 +00:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest TURNS OUT CASE SENSITIVITY IS IMPORTANT (#2481) 2019-08-20 11:16:06 -07: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 Add Microsoft.Terminal.Remoting.dll (#8607) 2021-01-07 22:59:37 +00:00