From 5da0c3d4a3529b7f8399b21fb700aa6fc8f702b0 Mon Sep 17 00:00:00 2001 From: Fan PengCheng Date: Tue, 13 Apr 2021 19:01:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=8C=E5=B1=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=88=90=E5=AF=B9=E8=A7=92=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E5=89=AF=E5=B1=8F=E6=97=A0=E6=B3=95=E5=94=A4=E9=86=92?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 鼠标监听区域未更新导致 Log: Change-Id: Ifd86cb9d3369b9322fde8bd1af834b5f9e66537e --- frame/util/multiscreenworker.cpp | 7 +++++-- frame/window/mainwindow.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frame/util/multiscreenworker.cpp b/frame/util/multiscreenworker.cpp index cc75e522f..98dc3e87d 100644 --- a/frame/util/multiscreenworker.cpp +++ b/frame/util/multiscreenworker.cpp @@ -773,6 +773,9 @@ void MultiScreenWorker::onRequestUpdatePosition(const Position &fromPos, const P void MultiScreenWorker::onRequestUpdateMonitorInfo() { + // 只需要在屏幕信息变化的时候更新,其他时间不需要更新 + onRequestUpdateRegionMonitor(); + m_monitorUpdateTimer->start(); } @@ -880,9 +883,9 @@ void MultiScreenWorker::initConnection() // 更新所在屏幕 resetDockScreen(); // 通知后端 - emit requestUpdateFrontendGeometry(); + onRequestUpdateFrontendGeometry(); // 通知窗管 - emit requestNotifyWindowManager(); + onRequestNotifyWindowManager(); }); } diff --git a/frame/window/mainwindow.cpp b/frame/window/mainwindow.cpp index e608853ca..c743bba5d 100755 --- a/frame/window/mainwindow.cpp +++ b/frame/window/mainwindow.cpp @@ -344,6 +344,7 @@ void MainWindow::initConnections() // -拖拽任务栏改变高度或宽度------------------------------------------------------------------------------- connect(m_updateDragAreaTimer, &QTimer::timeout, this, &MainWindow::resetDragWindow); + //TODO 后端考虑删除这块,目前还不能删除,调整任务栏高度的时候,任务栏外部区域有变化 connect(m_updateDragAreaTimer, &QTimer::timeout, m_multiScreenWorker, &MultiScreenWorker::onRequestUpdateRegionMonitor); connect(m_dragWidget, &DragWidget::dragPointOffset, this, [ = ] { qApp->setProperty(DRAG_STATE_PROP, true); });