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 +1 -1
- package/src/window_selector.mm +3 -12
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -1088,10 +1088,7 @@ bool startScreenSelection() {
|
|
|
1088
1088
|
|
|
1089
1089
|
// Force window layer to have no borders
|
|
1090
1090
|
[overlayWindow setWantsLayer:YES];
|
|
1091
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|