Skip to content

CaptureObsidianScreenshotOptions.shouldPinWindowFocus?

CaptureObsidianScreenshotOptions › shouldPinWindowFocus?

Type: boolean

Whether to draw the window as focused while capturing, so the frame does not depend on whether the operating system gave the window foreground focus that run.

Obsidian darkens the title bar of an unfocused window, and a freshly launched one is routinely refused the foreground. The is-focused class is added for the capture and handed back to Obsidian afterwards; the window's real focus is never touched. Turn it off only to photograph the unfocused chrome itself, and expect such a frame to differ between runs.