diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index 9a808233a..6c87c1b87 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -254,6 +254,8 @@ void MainWindow::init() { void MainWindow::handleStateChanged(Qt::WindowState state) { stateChangedHook(state); + updateShadowSize(); + updateControlsGeometry(); if (state == Qt::WindowMinimized) { controller().updateIsActiveBlur(); } else { diff --git a/Telegram/SourceFiles/window/window_title_qt.cpp b/Telegram/SourceFiles/window/window_title_qt.cpp index 8a52c3493..6ccee244f 100644 --- a/Telegram/SourceFiles/window/window_title_qt.cpp +++ b/Telegram/SourceFiles/window/window_title_qt.cpp @@ -286,6 +286,7 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) { if (_maximizedState != maximized) { _maximizedState = maximized; updateButtonsState(); + updateWindowExtents(); } }