terminal/src/cascadia
Don-Vito cb732a4bcc
7571: do not activate terminal window upon settings modificaion (#7887)
Took this as an easy starter. The method IslandWindow::SetAlwaysOnTop is
triggered once terminal settings are reloaded (in
TerminalPage::_RefreshUIForSettingsReload flow). This method calls
SetWindowPos without SWP_NOACTIVATE. As a result the window gets
activated, the focus is set and the cursor starts blinking.

Added SWP_NOACTIVATE in all SetWindowPos calls from IslandWindow and
NoClientIslandWindow (where it was missing). Please let me know if this
is an overkill - it is not required to fix the issue, however seems a
good practice, that might help if we decide to apply more settings
immediately.

## Validation Steps Performed
* Only manual testing - please guide me to the relevant UT framework, if
  exists. 
* Trying to reproduce this with VS attached doesn't work - the window
  gets the focus in any case.
* Tested as a standalone application, by modifying different settings
  (and comparing the results before and after the fix).
* Checked with Spy++ that no WM_ACTIVATE / WM_SETFOCUS is thrown upon
  settings modification
* Applied terminal resizing, toggling full screen and focus mode to
  check no regression was introduced.

Closes #7571
2020-10-13 15:40:56 -07:00
..
CascadiaPackage Revert "Update to a newer MUX prerelease; remove workaround for compact sizing (#7447)" 2020-09-08 09:25:30 -07:00
inc Introduce IconConverter (#7830) 2020-10-08 11:29:04 -07:00
LocalTests_SettingsModel Introduce IconConverter (#7830) 2020-10-08 11:29:04 -07:00
LocalTests_TerminalApp Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
PublicTerminalCore wpf: Add AutoFill to control whether the connection/buffer resizes (#7853) 2020-10-09 22:25:18 +00:00
ShellExtension Make the Shell Extension methods STDMETHODIMP (#6238) 2020-05-28 14:09:52 -07:00
TerminalApp Inform user that holding alt opens a new pane (#7866) 2020-10-12 17:14:02 -07:00
TerminalAzBridge Fix parallel builds by specifying the application type for WAP (#7783) 2020-09-30 13:25:50 -07:00
TerminalConnection Hook up the WIL fallback error tracer in Terminal (#7864) 2020-10-09 22:20:12 +00:00
TerminalControl Fix capitalization in hyperlink tooltip (#7901) 2020-10-12 17:15:25 -07:00
TerminalCore Add support for the BEL control in Windows Terminal (#7679) 2020-09-30 18:00:06 -07:00
TerminalSettingsModel Add an animation to pane entrance/exit (#7364) 2020-10-09 23:06:40 +00:00
UnitTests_TerminalCore Fix failing HyperlinkIdConsistency unit test (#7655) 2020-09-17 16:52:42 +00:00
ut_app Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
WindowsTerminal 7571: do not activate terminal window upon settings modificaion (#7887) 2020-10-13 15:40:56 -07:00
WindowsTerminalUniversal Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00
WinRTUtils Add support for the Command Palette (#6635) 2020-06-26 20:38:02 +00:00
WpfTerminalControl wpf: fix margin calculations and resize events (#7892) 2020-10-12 18:21:11 -07:00
WpfTerminalTestNetCore/WpfTerminalTestNetCore Fix 3 different bugs in the WPF control (#6464) 2020-06-11 18:05:43 +00:00
wt Build and ship an actual binary named wt that just launches WT (#6860) 2020-07-10 22:41:37 +00:00
CascadiaResources.build.items Introduce TerminalSettingsModel project (#7667) 2020-10-06 09:56:59 -07:00