node-mac-recorder 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -167,7 +167,13 @@ class MacRecorder extends EventEmitter {
167
167
  targetDisplayId = display.id; // Use actual display ID, not array index
168
168
  // Koordinatları display'e göre normalize et
169
169
  adjustedX = targetWindow.x - display.x;
170
- adjustedY = targetWindow.y - display.y;
170
+
171
+ // Y coordinate fix: Window selector uses NSScreen.frame (excludes menu bar)
172
+ // but recording uses CGDisplayBounds (includes menu bar)
173
+ // For primary display, add menu bar height (~22-25px) to Y coordinate
174
+ const isMainDisplay = display.isPrimary;
175
+ const menuBarHeight = isMainDisplay ? 25 : 0; // Menu bar height adjustment
176
+ adjustedY = targetWindow.y - display.y + menuBarHeight;
171
177
  break;
172
178
  }
173
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [