From 9bcd2ab1b5fbf293dbde09f088d755d3985ef35f Mon Sep 17 00:00:00 2001 From: rankun Date: Sat, 6 Jun 2020 20:49:33 +0800 Subject: [PATCH] fix: mouse move grab rect too small on mac --- QtScrcpy/device/ui/videoform.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QtScrcpy/device/ui/videoform.cpp b/QtScrcpy/device/ui/videoform.cpp index aee311b..d555ac2 100644 --- a/QtScrcpy/device/ui/videoform.cpp +++ b/QtScrcpy/device/ui/videoform.cpp @@ -100,10 +100,10 @@ QRect VideoForm::getGrabCursorRect() rc = m_videoWidget->geometry(); rc.setTopLeft(ui->keepRadioWidget->mapToGlobal(rc.topLeft())); rc.setBottomRight(ui->keepRadioWidget->mapToGlobal(rc.bottomRight())); - rc.setX(rc.x() + 100); - rc.setY(rc.y() + 30); - rc.setWidth(rc.width() - 180); - rc.setHeight(rc.height() - 60); + rc.setX(rc.x() + 10); + rc.setY(rc.y() + 10); + rc.setWidth(rc.width() - 20); + rc.setHeight(rc.height() - 20); #else #endif