node-mac-recorder 2.6.15 → 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.15",
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,9 +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
- // Note: NSWindow doesn't have direct layer access, only contentView does
1089
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1092
1090
 
1093
1091
  // Create select button with more padding
1094
1092
  NSButton *selectButton = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 60)];
@@ -1384,9 +1382,7 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
1384
1382
  [overlayWindow orderFront:nil];
1385
1383
  [overlayWindow makeKeyAndOrderFront:nil];
1386
1384
 
1387
- // Force window layer to have no borders
1388
- [overlayWindow setWantsLayer:YES];
1389
- // Note: NSWindow doesn't have direct layer access, only contentView does
1385
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1390
1386
 
1391
1387
  // Store for cleanup (reuse recording preview window variable)
1392
1388
  if (!g_recordingPreviewWindow) {
@@ -1460,9 +1456,7 @@ Napi::Value StartWindowSelection(const Napi::CallbackInfo& info) {
1460
1456
  g_overlayView = [[WindowSelectorOverlayView alloc] initWithFrame:initialFrame];
1461
1457
  [g_overlayWindow setContentView:g_overlayView];
1462
1458
 
1463
- // Force window layer to have no borders
1464
- [g_overlayWindow setWantsLayer:YES];
1465
- // Note: NSWindow doesn't have direct layer access, only contentView does
1459
+ // Note: NSWindow doesn't have setWantsLayer method, only NSView does
1466
1460
 
1467
1461
  // Force content view to have no borders
1468
1462
  g_overlayWindow.contentView.wantsLayer = YES;