mirror of
https://github.com/microsoft/terminal.git
synced 2026-09-25 00:15:10 +00:00
yea this does it
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user