Skip to content

Commit

Permalink
fix: dock item indicator not update
Browse files Browse the repository at this point in the history
update dock item position

log: as title
issue: linuxdeepin/developer-center#7097
  • Loading branch information
tsic404 authored and deepin-bot[bot] committed Jan 30, 2024
1 parent 710a9f5 commit edea9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/util/multiscreenworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
// 这种情况切换位置,任务栏不需要显示
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit edea9b8

Please sign in to comment.