fix(frame): 双屏对角拼接时切换位置后鼠标不能唤起

任务栏通过菜单唤起后未能重新计算屏幕可停靠位置

Log: 修复双屏对角拼接时切换任务栏位置后鼠标不能唤起任务栏
Task: https://pms.uniontech.com/zentao/task-view-27393.html
This commit is contained in:
zhaolong 2020-06-19 15:41:18 +08:00
parent 55e252cd83
commit 5207090044

View File

@ -376,7 +376,6 @@ void DockSettings::menuActionClicked(QAction *action)
return m_dockInter->setDisplayMode(Efficient);
m_isMouseMoveCause = false;
calculateMultiScreensPos();
if (action == &m_topPosAct)
return m_dockInter->setPosition(Top);
if (action == &m_bottomPosAct)
@ -424,6 +423,9 @@ void DockSettings::onPositionChanged()
return;
m_position = nextPos;
// 位置改变 重新计算可停靠任务栏的位置
calculateMultiScreensPos();
// 通知主窗口改变位置
emit positionChanged();
}