From fba15f118a4a6992940a5137d4dcbabb20e5b6b2 Mon Sep 17 00:00:00 2001 From: donghualin Date: Thu, 22 Sep 2022 04:48:04 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=A0=8F=E5=9C=A8=E5=89=AF=E5=B1=8F=E4=B8=8A=E6=96=B9=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E8=B7=9F=E9=9A=8F=E6=9C=AA=E7=A7=BB=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因:任务栏修改位置从下到上方的时候,未更新XEventMonitor监听的位置,所以在鼠标移入主屏幕的时候没有响应cursorMove信号,导致任务栏没有移动 Log: 修复任务栏在副屏上方鼠标跟随未移动到左侧的问题 Influence: 开启鼠标跟随,任务栏默认在主屏,鼠标移动到副屏幕,任务栏跟随到副屏幕,改变任务栏位置为上,此时任务栏在副屏幕的上方,将鼠标移动到主屏幕的上方,观察任务栏是否移动到主屏幕的上方 Bug: https://pms.uniontech.com/bug-view-147641.html Change-Id: Ie1265f14509b582325adca2f542c4dc0af1fc53c --- frame/window/mainwindowbase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frame/window/mainwindowbase.cpp b/frame/window/mainwindowbase.cpp index 1ec2c9faf..82ff30e5d 100644 --- a/frame/window/mainwindowbase.cpp +++ b/frame/window/mainwindowbase.cpp @@ -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)