mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: dock wakeup area not changed
When dock is hidden, position change through DBus will not change frontend rect, thus not update wakeup area. This is because position in WindowManager is not changed. Emit positionChanged signal in MultiScreenWorker. Log: fix dock wakeup area not changed Issue: https://github.com/linuxdeepin/developer-center/issues/5831
This commit is contained in:
parent
b74544aa23
commit
e47a6dfb80
@ -181,6 +181,7 @@ void MultiScreenWorker::onPositionChanged(int position)
|
||||
qDebug() << "position change from: " << lastPos << " to: " << position;
|
||||
#endif
|
||||
m_position = static_cast<Position>(position);
|
||||
Q_EMIT positionChanged(m_position);
|
||||
|
||||
if (m_hideMode == HideMode::KeepHidden || (m_hideMode == HideMode::SmartHide && m_hideState == HideState::Hide)) {
|
||||
// 这种情况切换位置,任务栏不需要显示
|
||||
|
Loading…
x
Reference in New Issue
Block a user