From ae90347c6cdd57048ebf08a99f19d7c1407f39b5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 23 Nov 2022 00:44:31 +0100 Subject: [PATCH] Revert "Fixed switching between accounts with filters at screen edge." This reverts commit 8f3c3b2a54dc67ee803ce4de1472305465f6a109. Regressions with account switch in a maximized window. --- Telegram/SourceFiles/window/main_window.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index e3dd7554e2..3187b19283 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -587,12 +587,6 @@ void MainWindow::updateMinimumSize() { void MainWindow::recountGeometryConstraints() { updateMinimumSize(); - { - // Resizing to a new minimum size (larger than before) - // may cause the window to go out of bounds. - savePosition(Qt::WindowActive); - setGeometry(countInitialGeometry(positionFromSettings())); - } updateControlsGeometry(); fixOrder(); }