Update window shadow size on window state change

This commit is contained in:
Ilya Fedin 2020-08-28 19:43:23 +04:00 committed by John Preston
parent 78a2835bbf
commit 612e0d4a10
2 changed files with 3 additions and 0 deletions

View file

@ -254,6 +254,8 @@ void MainWindow::init() {
void MainWindow::handleStateChanged(Qt::WindowState state) {
stateChangedHook(state);
updateShadowSize();
updateControlsGeometry();
if (state == Qt::WindowMinimized) {
controller().updateIsActiveBlur();
} else {

View file

@ -286,6 +286,7 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) {
if (_maximizedState != maximized) {
_maximizedState = maximized;
updateButtonsState();
updateWindowExtents();
}
}