force update when wm changed

Change-Id: Ic28a4cc22ea4af6378ae8fce959c33304ec094a4
This commit is contained in:
石博文 2018-02-05 17:03:02 +08:00
parent 7f6d6c33a6
commit 4487d359ad
Notes: Deepin Code Review 2018-02-05 17:08:30 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Mon, 05 Feb 2018 17:08:29 +0800
Reviewed-on: https://cr.deepin.io/31465
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,8 @@ void MainPanel::setEffectEnabled(const bool enabled)
setMaskColor(QColor(0, 0, 0, 255 * 0.4));
else
setMaskColor(QColor(55, 63, 71));
m_itemAdjustTimer->start();
}
void MainPanel::moveEvent(QMoveEvent* e)

View File

@ -279,6 +279,7 @@ void MainWindow::compositeChanged()
m_mainPanel->setEffectEnabled(composite);
m_shadowMaskOptimizeTimer->start();
m_positionUpdateTimer->start();
}
void MainWindow::internalMove(const QPoint &p)