From 37478d951ac5821418750cda774ba89333818ad5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 18 Jan 2024 17:27:30 +0400 Subject: [PATCH] Fix initial geometry for secondary windows. --- Telegram/SourceFiles/core/application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/application.cpp b/Telegram/SourceFiles/core/application.cpp index 998793df3..3ed87c893 100644 --- a/Telegram/SourceFiles/core/application.cpp +++ b/Telegram/SourceFiles/core/application.cpp @@ -1321,7 +1321,7 @@ Window::Controller *Application::ensureSeparateWindowForPeer( std::make_unique(peer, showAtMsgId) ).first->second.get(); processCreatedWindow(result); - result->widget()->show(); + result->firstShow(); result->finishFirstShow(); return activate(result); } @@ -1341,7 +1341,7 @@ Window::Controller *Application::ensureSeparateWindowForAccount( std::make_unique(account) ).first->second.get(); processCreatedWindow(result); - result->widget()->show(); + result->firstShow(); result->finishFirstShow(); return activate(result); }