fix: update appitem position when showing from hide

dock request to hide, set old position to appitem.
so need to update appitem position when show from hide state

log:
This commit is contained in:
tsic404 2023-04-20 21:28:39 +08:00 committed by deepin-bot[bot]
parent 8bf079219a
commit e6dbaa69bb

View File

@ -937,6 +937,7 @@ 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;