diff --git a/QtScrcpy/main.cpp b/QtScrcpy/main.cpp
index 405d632..91c5d10 100644
--- a/QtScrcpy/main.cpp
+++ b/QtScrcpy/main.cpp
@@ -48,6 +48,10 @@ int main(int argc, char *argv[])
qputenv("QTSCRCPY_CONFIG_PATH", "../../../../config");
#endif
+#ifdef Q_OS_OSX
+ qputenv("QTSCRCPY_KEYMAP_PATH", "../../../../../../keymap");
+#endif
+
#ifdef Q_OS_LINUX
qputenv("QTSCRCPY_ADB_PATH", "../../../third_party/adb/linux/adb");
qputenv("QTSCRCPY_SERVER_PATH", "../../../third_party/scrcpy-server");
diff --git a/QtScrcpy/res/Info_mac.plist b/QtScrcpy/res/Info_mac.plist
index c32ac18..f60e1f0 100644
--- a/QtScrcpy/res/Info_mac.plist
+++ b/QtScrcpy/res/Info_mac.plist
@@ -28,6 +28,8 @@
1.2.0
LSMinimumSystemVersion
10.10
+ NSAppleEventsUsageDescription
+ play game need this
NSHumanReadableCopyright
Copyright © 2018-2038 rankun. All rights reserved.
NSMainStoryboardFile
diff --git a/QtScrcpy/util/mousetap/cocoamousetap.mm b/QtScrcpy/util/mousetap/cocoamousetap.mm
index fdcd129..c03827c 100644
--- a/QtScrcpy/util/mousetap/cocoamousetap.mm
+++ b/QtScrcpy/util/mousetap/cocoamousetap.mm
@@ -62,10 +62,14 @@ static CGEventRef Cocoa_MouseTapCallback(CGEventTapProxy proxy, CGEventType type
eventLocation = CGEventGetUnflippedLocation(event);
windowRect = [nswindow contentRectForFrameRect:[nswindow frame]];
+ windowRect.origin.x += 100;
+ windowRect.origin.y += 30;
+ windowRect.size.width -= 180;
+ windowRect.size.height -= 60;
+
newWindowRect = NSMakeRect(windowRect.origin.x, windowRect.origin.y,
windowRect.size.width - 10, windowRect.size.height - 10);
- qDebug() << newWindowRect.origin.x << newWindowRect.origin.y
- << newWindowRect.size.width << newWindowRect.size.height;
+ //qDebug() << newWindowRect.origin.x << newWindowRect.origin.y << newWindowRect.size.width << newWindowRect.size.height;
if (!NSMouseInRect(NSPointFromCGPoint(eventLocation), newWindowRect, NO)) {