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 +1 -1
- package/src/window_selector.mm +3 -18
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -1086,12 +1086,7 @@ bool startScreenSelection() {
|
|
|
1086
1086
|
[overlayView setScreenInfo:screenInfo];
|
|
1087
1087
|
[overlayWindow setContentView:overlayView];
|
|
1088
1088
|
|
|
1089
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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;
|