mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Update window shadow size on window state change
This commit is contained in:
parent
78a2835bbf
commit
612e0d4a10
2 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue