node-mac-recorder 2.6.13 → 2.6.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.6.13",
3
+ "version": "2.6.15",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1088,10 +1088,7 @@ bool startScreenSelection() {
1088
1088
 
1089
1089
  // Force window layer to have no borders
1090
1090
  [overlayWindow setWantsLayer:YES];
1091
- overlayWindow.layer.borderWidth = 0.0;
1092
- overlayWindow.layer.borderColor = [[NSColor clearColor] CGColor];
1093
- overlayWindow.layer.cornerRadius = 0.0;
1094
- overlayWindow.layer.masksToBounds = YES;
1091
+ // Note: NSWindow doesn't have direct layer access, only contentView does
1095
1092
 
1096
1093
  // Create select button with more padding
1097
1094
  NSButton *selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
@@ -1389,10 +1386,7 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
1389
1386
 
1390
1387
  // Force window layer to have no borders
1391
1388
  [overlayWindow setWantsLayer:YES];
1392
- overlayWindow.layer.borderWidth = 0.0;
1393
- overlayWindow.layer.borderColor = [[NSColor clearColor] CGColor];
1394
- overlayWindow.layer.cornerRadius = 0.0;
1395
- overlayWindow.layer.masksToBounds = YES;
1389
+ // Note: NSWindow doesn't have direct layer access, only contentView does
1396
1390
 
1397
1391
  // Store for cleanup (reuse recording preview window variable)
1398
1392
  if (!g_recordingPreviewWindow) {
@@ -1468,10 +1462,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1468
1462
 
1469
1463
  // Force window layer to have no borders
1470
1464
  [g_overlayWindow setWantsLayer:YES];
1471
- g_overlayWindow.layer.borderWidth = 0.0;
1472
- g_overlayWindow.layer.borderColor = [[NSColor clearColor] CGColor];
1473
- g_overlayWindow.layer.cornerRadius = 0.0;
1474
- g_overlayWindow.layer.masksToBounds = YES;
1465
+ // Note: NSWindow doesn't have direct layer access, only contentView does
1475
1466
 
1476
1467
  // Force content view to have no borders
1477
1468
  g_overlayWindow.contentView.wantsLayer = YES;