fix: 修复任务栏位置发生变化后消息不跟随的问题

任务栏位置发生变化的信号中增加参数,方便osd正确识别到该信号来改变提示消息的位置

Log: 修复任务栏位置发生变化后消息不跟随的问题
Influence: 多屏幕下,任务栏跟随鼠标,任务栏在主副屏幕切换的时候,观察消息是否跟随任务栏位置显示
Bug: https://pms.uniontech.com/bug-view-184231.html
Change-Id: I7bfcc134daf6d0c61d435e870da9e098043e5ba8
This commit is contained in:
donghualin 2023-02-02 15:40:48 +08:00 committed by Gary Wang
parent 3104c23e9a
commit 8cf5d61469
3 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ Q_SIGNALS: // SIGNALS
void DisplayModeChanged(int value) const;
void DockedAppsChanged(const QStringList &value) const;
void EntriesChanged(const QList<QDBusObjectPath> &value) const;
void FrontendWindowRectChanged() const;
void FrontendWindowRectChanged(const QRect &dockRect) const;
void HideModeChanged(int value) const;
void HideStateChanged(int value) const;
void HideTimeoutChanged(uint value) const;

View File

@ -501,7 +501,7 @@ void Dock::setFrontendWindowRect(int32_t x, int32_t y, uint width, uint height)
m_frontendWindowRect.setHeight(height);
updateHideState(false);
Q_EMIT frontendWindowRectChanged();
Q_EMIT frontendWindowRectChanged(m_frontendWindowRect);
}
/**

View File

@ -155,7 +155,7 @@ Q_SIGNALS:
void entryAdded(QDBusObjectPath entryObjPath, int index);
void entryRemoved(QString id);
void hideStateChanged(int);
void frontendWindowRectChanged();
void frontendWindowRectChanged(const QRect &dockRect);
void showRecentChanged(bool);
void showMultiWindowChanged(bool);