Skip to content

Commit

Permalink
attempt force to foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
miniksa committed May 21, 2021
1 parent 2090584 commit 464ebb8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cascadia/TerminalApp/TerminalPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2336,6 +2336,14 @@ namespace winrt::TerminalApp::implementation
{
// TODO: GH 9458 will give us more context so we can try to choose a better profile.
_OpenNewTab(nullptr, connection);

// Attempt to force ourselves into the foreground if we can.
// If not, oh well.
if (_hostingHwnd)
{
SetForegroundWindow(_hostingHwnd.value());
SetActiveWindow(_hostingHwnd.value());
}
}

// Method Description:
Expand Down

0 comments on commit 464ebb8

Please sign in to comment.