mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix(frame): 双屏对角拼接时切换位置后鼠标不能唤起
任务栏通过菜单唤起后未能重新计算屏幕可停靠位置 Log: 修复双屏对角拼接时切换任务栏位置后鼠标不能唤起任务栏 Task: https://pms.uniontech.com/zentao/task-view-27393.html
This commit is contained in:
parent
55e252cd83
commit
5207090044
@ -376,7 +376,6 @@ void DockSettings::menuActionClicked(QAction *action)
|
|||||||
return m_dockInter->setDisplayMode(Efficient);
|
return m_dockInter->setDisplayMode(Efficient);
|
||||||
|
|
||||||
m_isMouseMoveCause = false;
|
m_isMouseMoveCause = false;
|
||||||
calculateMultiScreensPos();
|
|
||||||
if (action == &m_topPosAct)
|
if (action == &m_topPosAct)
|
||||||
return m_dockInter->setPosition(Top);
|
return m_dockInter->setPosition(Top);
|
||||||
if (action == &m_bottomPosAct)
|
if (action == &m_bottomPosAct)
|
||||||
@ -424,6 +423,9 @@ void DockSettings::onPositionChanged()
|
|||||||
return;
|
return;
|
||||||
m_position = nextPos;
|
m_position = nextPos;
|
||||||
|
|
||||||
|
// 位置改变 重新计算可停靠任务栏的位置
|
||||||
|
calculateMultiScreensPos();
|
||||||
|
|
||||||
// 通知主窗口改变位置
|
// 通知主窗口改变位置
|
||||||
emit positionChanged();
|
emit positionChanged();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user