yea this does it

This commit is contained in:
Mike Griese
2022-08-19 13:14:13 -05:00
parent a1fd241604
commit c34495dcfc
2 changed files with 3 additions and 8 deletions

View File

@@ -562,9 +562,7 @@ void AppHost::_HandleCreateWindow(const HWND /* hwnd */, const til::rect& propos
{
// GH#11561: Hide the window until we're totally done being initialized.
// More commentary in TerminalPage::_CompleteInitialization
_proposedRect = proposedRect;
LaunchMode launchMode{};
_initialResizeAndRepositionWindow(_window->GetHandle(), _proposedRect, launchMode);
_initialResizeAndRepositionWindow(_window->GetHandle(), proposedRect, _launchMode);
}
// Method Description:
@@ -1664,11 +1662,8 @@ void AppHost::_AppInitializedHandler(const winrt::Windows::Foundation::IInspecta
// match the initial settings, and then call ShowWindow to finally make us
// visible.
LaunchMode launchMode{};
// _initialResizeAndRepositionWindow(_window->GetHandle(), _proposedRect, launchMode);
auto nCmdShow = SW_SHOWDEFAULT;
if (WI_IsFlagSet(launchMode, LaunchMode::MaximizedMode))
if (WI_IsFlagSet(_launchMode, LaunchMode::MaximizedMode))
{
nCmdShow = SW_MAXIMIZE;
}

View File

@@ -31,7 +31,7 @@ private:
bool _shouldCreateWindow{ false };
bool _useNonClientArea{ false };
til::rect _proposedRect{};
winrt::Microsoft::Terminal::Settings::Model::LaunchMode _launchMode{};
std::optional<til::throttled_func_trailing<>> _getWindowLayoutThrottler;
std::shared_ptr<ThrottledFuncTrailing<bool>> _showHideWindowThrottler;