]> git.r.bdr.sh - rbdr/captura/blobdiff - Captura/Presentation/Windows/RecordingWindow.swift
Allow URL configuration
[rbdr/captura] / Captura / Presentation / Windows / RecordingWindow.swift
index 2bb9928067f7accd8caf361630909974dfc98a59..3395c549c65ba6a7734772354de906da45442f1e 100644 (file)
@@ -7,6 +7,10 @@ class RecordingWindow: NSWindow {
     self.screen?.backingScaleFactor ?? 1.0
   }
   
+  var recordingContentView: RecordingContentView {
+    self.contentView as! RecordingContentView
+  }
+  
   init(_ button: NSRect?) {
     
     let screens = NSScreen.screens
@@ -23,9 +27,9 @@ class RecordingWindow: NSWindow {
 
     self.isReleasedWhenClosed = false
     self.collectionBehavior = [.canJoinAllSpaces]
-    self.center()
     self.isMovableByWindowBackground = false
     self.isMovable = false
+    self.canHide = false
     self.titlebarAppearsTransparent = true
     self.setFrame(boundingBox, display: true)
     self.titleVisibility = .hidden
@@ -37,7 +41,6 @@ class RecordingWindow: NSWindow {
     self.level = .screenSaver
     self.isOpaque = false
     self.hasShadow = false
-    self.makeKeyAndOrderFront(nil)
   }
   
   // MARK: - Window Behavior Overrides