mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: dock item indicator not update
update dock item position log: as title issue: https://github.com/linuxdeepin/developer-center/issues/7097
This commit is contained in:
parent
710a9f562b
commit
edea9b860d
@ -192,6 +192,7 @@ void MultiScreenWorker::onPositionChanged(int position)
|
||||
qDebug() << "position change from: " << lastPos << " to: " << position;
|
||||
#endif
|
||||
m_position = static_cast<Position>(position);
|
||||
DockItem::setDockPosition(m_position);
|
||||
|
||||
if (m_hideMode == HideMode::KeepHidden || (m_hideMode == HideMode::SmartHide && m_hideState == HideState::Hide)) {
|
||||
// 这种情况切换位置,任务栏不需要显示
|
||||
@ -903,7 +904,6 @@ void MultiScreenWorker::onDelayAutoHideChanged()
|
||||
*/
|
||||
void MultiScreenWorker::tryToShowDock(int eventX, int eventY)
|
||||
{
|
||||
DockItem::setDockPosition(m_position);
|
||||
if (qApp->property("DRAG_STATE").toBool() || testState(ChangePositionAnimationStart)) {
|
||||
qWarning() << "dock is draging or animation is running";
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user