mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
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:
parent
2a09259cc2
commit
3aa4ab50ca
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user