fix: mips平台剪切板、通知中心不跟随任务栏

mips平台resizeEvent缺失导致任务栏没有及时发送geometry变化信号,导致剪切板、任务栏没有及时更新位置

Log: 解决mips平台剪切板、通知中心不跟随 任务栏问题
Bug: https://pms.uniontech.com/zentao/bug-view-48969.html
Change-Id: If091ed21ad70346526de0f5a5bbeec07e36726c7
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/6349
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
This commit is contained in:
Liu Xing 2020-09-25 21:24:00 +08:00 committed by liuxing
parent 2a09259cc2
commit 3aa4ab50ca
2 changed files with 12 additions and 0 deletions

View File

@ -503,4 +503,15 @@ void MainWindow::touchRequestResizeDock()
, Qt::NoModifier, Qt::MouseEventSynthesizedByApplication));
}
void MainWindow::setGeometry(const QRect &rect)
{
static QRect lastRect;
if (lastRect == rect) {
return;
}
lastRect = rect;
DBlurEffectWidget::setGeometry(rect);
emit panelGeometryChanged();
}
#include "mainwindow.moc"

View File

@ -121,6 +121,7 @@ public:
~MainWindow() override;
void setEffectEnabled(const bool enabled);
void setComposite(const bool hasComposite);
void setGeometry(const QRect &rect);
friend class MainPanel;
friend class MainPanelControl;