From c3a8b3832ffebda290d831a0a828dfe2b6f50a06 Mon Sep 17 00:00:00 2001 From: rankun Date: Wed, 20 May 2020 12:48:28 +0800 Subject: [PATCH] fix: cant recv mouse move event --- QtScrcpy/device/ui/videoform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index 57aaf09..e9d77ef 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -92,6 +92,10 @@ QRect VideoForm::getGrabCursorRect() // high dpi support rc.setTopLeft(rc.topLeft() * m_videoWidget->devicePixelRatio()); rc.setBottomRight(rc.bottomRight() * m_videoWidget->devicePixelRatio()); + rc.setX(rc.x() + 10); + rc.setY(rc.y() + 10); + rc.setWidth(rc.width() - 20); + rc.setHeight(rc.height() - 20); #elif defined(Q_OS_OSX) rc = m_videoWidget->geometry(); rc.setTopLeft(ui->keepRadioWidget->mapToGlobal(rc.topLeft()));