mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
void MainWindow::handleStateChanged(Qt::WindowState state) {
|
||||||
stateChangedHook(state);
|
stateChangedHook(state);
|
||||||
|
updateShadowSize();
|
||||||
|
updateControlsGeometry();
|
||||||
if (state == Qt::WindowMinimized) {
|
if (state == Qt::WindowMinimized) {
|
||||||
controller().updateIsActiveBlur();
|
controller().updateIsActiveBlur();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -286,6 +286,7 @@ void TitleWidgetQt::windowStateChanged(Qt::WindowState state) {
|
||||||
if (_maximizedState != maximized) {
|
if (_maximizedState != maximized) {
|
||||||
_maximizedState = maximized;
|
_maximizedState = maximized;
|
||||||
updateButtonsState();
|
updateButtonsState();
|
||||||
|
updateWindowExtents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue