nashaofu / xcap

XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (to be implemented).

Home Page:https://docs.rs/xcap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS windows are only captured in the same screen that the program was started in.

etzabo opened this issue · comments

I'm attempting to capture fullscreen application windows that may not always be visible, which becomes a problem when xcap only detects and captures windows in the desktop or the fullscreen window it was started from. I believe this can be fixed by simply using kCGWindowListOptionAll instead of kCGWindowListOptionOnScreenOnly in CGWindowListCopyWindowInfo on line 137 of impl_window.rs.