fix: 修复任务栏在副屏上方鼠标跟随未移动到左侧的问题

原因:任务栏修改位置从下到上方的时候,未更新XEventMonitor监听的位置,所以在鼠标移入主屏幕的时候没有响应cursorMove信号,导致任务栏没有移动

Log: 修复任务栏在副屏上方鼠标跟随未移动到左侧的问题
Influence: 开启鼠标跟随,任务栏默认在主屏,鼠标移动到副屏幕,任务栏跟随到副屏幕,改变任务栏位置为上,此时任务栏在副屏幕的上方,将鼠标移动到主屏幕的上方,观察任务栏是否移动到主屏幕的上方
Bug: https://pms.uniontech.com/bug-view-147641.html
Change-Id: Ie1265f14509b582325adca2f542c4dc0af1fc53c
This commit is contained in:
donghualin 2022-09-22 04:48:04 +00:00
parent 18fdbcd838
commit fba15f118a

View File

@ -568,11 +568,17 @@ void MainWindowBase::resizeEvent(QResizeEvent *event)
}
m_shadowMaskOptimizeTimer->start();
if (!isDraging())
m_updateDragAreaTimer->start();
}
void MainWindowBase::moveEvent(QMoveEvent *)
{
updateDragGeometry();
if (!isDraging())
m_updateDragAreaTimer->start();
}
void MainWindowBase::enterEvent(QEvent *e)