mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Update window shadow size on window state change
This commit is contained in:
@@ -254,6 +254,8 @@ void MainWindow::init() {
|
||||
|
||||
void MainWindow::handleStateChanged(Qt::WindowState state) {
|
||||
stateChangedHook(state);
|
||||
updateShadowSize();
|
||||
updateControlsGeometry();
|
||||
if (state == Qt::WindowMinimized) {
|
||||
controller().updateIsActiveBlur();
|
||||
} else {
|
||||
|
||||
@@ -286,6 +286,7 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) {
|
||||
if (_maximizedState != maximized) {
|
||||
_maximizedState = maximized;
|
||||
updateButtonsState();
|
||||
updateWindowExtents();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user