node-mac-recorder 2.6.14 → 2.6.16

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.14",
3
+ "version": "2.6.16",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1086,12 +1086,7 @@ bool startScreenSelection() {
1086
1086
  [overlayView setScreenInfo:screenInfo];
1087
1087
  [overlayWindow setContentView:overlayView];
1088
1088
 
1089
- // Force window layer to have no borders
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;
1089
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1095
1090
 
1096
1091
  // Create select button with more padding
1097
1092
  NSButton *selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
@@ -1387,12 +1382,7 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
1387
1382
  [overlayWindow orderFront:nil];
1388
1383
  [overlayWindow makeKeyAndOrderFront:nil];
1389
1384
 
1390
- // Force window layer to have no borders
1391
- [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;
1385
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1396
1386
 
1397
1387
  // Store for cleanup (reuse recording preview window variable)
1398
1388
  if (!g_recordingPreviewWindow) {
@@ -1466,12 +1456,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1466
1456
  g_overlayView = [[WindowSelectorOverlayView alloc] initWithFrame:initialFrame];
1467
1457
  [g_overlayWindow setContentView:g_overlayView];
1468
1458
 
1469
- // Force window layer to have no borders
1470
- [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;
1459
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1475
1460
 
1476
1461
  // Force content view to have no borders
1477
1462
  g_overlayWindow.contentView.wantsLayer = YES;