Skip to content

Commit

Permalink
this reconnects the new window to the existing content process
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 13, 2022
1 parent 76d8fa7 commit 7b3ca83
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cascadia/TerminalControl/TermControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,13 @@ namespace winrt::Microsoft::Terminal::Control::implementation
const auto coreInitialized = _core.Initialize(panelWidth,
panelHeight,
panelScaleX);
if (!coreInitialized)
// ControlCore::Initialize will return false if it was already
// initialized. In that case, don't init the rest of the interactivity,
// but do go on and hook us up to the core's swapchain and callbacks.
if (coreInitialized)
{
return false;
_interactivity.Initialize();
}
_interactivity.Initialize();

// TODO! very good chance we leak this handle
const HANDLE chainHandle = reinterpret_cast<HANDLE>(_contentIsOutOfProc() ?
Expand Down

0 comments on commit 7b3ca83

Please sign in to comment.