node-mac-recorder 2.6.17 → 2.6.19
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 +11 -2
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -1369,6 +1369,14 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
|
|
|
1369
1369
|
[overlayWindow setAlphaValue:1.0];
|
|
1370
1370
|
[overlayWindow setCollectionBehavior:NSWindowCollectionBehaviorStationary | NSWindowCollectionBehaviorCanJoinAllSpaces];
|
|
1371
1371
|
|
|
1372
|
+
|
|
1373
|
+
// Force content view to have no borders
|
|
1374
|
+
overlayWindow.contentView.wantsLayer = YES;
|
|
1375
|
+
overlayWindow.contentView.layer.borderWidth = 0.0;
|
|
1376
|
+
overlayWindow.contentView.layer.borderColor = [[NSColor clearColor] CGColor];
|
|
1377
|
+
overlayWindow.contentView.layer.cornerRadius = 0.0;
|
|
1378
|
+
overlayWindow.contentView.layer.masksToBounds = YES;
|
|
1379
|
+
|
|
1372
1380
|
// Remove any default window decorations and borders
|
|
1373
1381
|
[overlayWindow setTitlebarAppearsTransparent:YES];
|
|
1374
1382
|
[overlayWindow setTitleVisibility:NSWindowTitleHidden];
|
|
@@ -1378,8 +1386,9 @@ bool showScreenRecordingPreview(NSDictionary *screenInfo) {
|
|
|
1378
1386
|
// Force remove all borders and decorations
|
|
1379
1387
|
[overlayWindow setHasShadow:NO];
|
|
1380
1388
|
[overlayWindow setOpaque:NO];
|
|
1381
|
-
[overlayWindow setBackgroundColor:[NSColor
|
|
1382
|
-
|
|
1389
|
+
[overlayWindow setBackgroundColor:[NSColor clearColor]];
|
|
1390
|
+
|
|
1391
|
+
|
|
1383
1392
|
[overlayWindow orderFront:nil];
|
|
1384
1393
|
[overlayWindow makeKeyAndOrderFront:nil];
|
|
1385
1394
|
|