Reactor 3 ⇄Terminal β›Ά
Pick a file in Files to edit it here.
Terminalβ›Ά
      52                  $0.owningApplication?.processID == mypid && $0.isOnScreen && $0.frame.width > 100
      53              }) {
      54                  filter = SCContentFilter(desktopIndependentWindow: win)
      55 -                cfg.width = Int(win.frame.width * 2)                                                                                 
      56 -                cfg.height = Int(win.frame.height * 2)                                                                               
      55              } else if let display = content.displays.first {
      56                  filter = SCContentFilter(display: display, excludingWindows: [])
      59 -                cfg.width = display.width                                                                                            
      60 -                cfg.height = display.height                                                                                          
      57              } else {
      58                  writeStatus("no displays/windows to capture")
      59                  return
      60              }
      61 +            // Native-resolution, tight to the captured content (no black padding on 1Γ— displays).                                   
      62 +            let scale = CGFloat(filter.pointPixelScale)                                                                              
      63 +            cfg.width = max(1, Int(filter.contentRect.width * scale))                                                                
      64 +            cfg.height = max(1, Int(filter.contentRect.height * scale))                                                              
      65              cfg.showsCursor = false
      66              let cg = try await SCScreenshotManager.captureImage(contentFilter: filter, configuration: cfg)
      67              let rep = NSBitmapImageRep(cgImage: cg)

● Now rebuild, relaunch, and pull a clean shot:

● Running 1 shell command…

✽ Ionizing… (1m 36s Β· ↓ 6.2k tokens)
  ⎿  Tip: Use /btw to ask a quick side question without interrupting Claude's current work

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── continue-conversation ──
❯ 

⏡⏡ bypass permissions on (shift+tab to cycle) Β· ← for agents Β· esc to interrupt
FilesEditorTerminal