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).
https://docs.rs/xcap
Apache License 2.0
459 stars 55 forks source link

[FEATURE REQUEST] add get current function for monitor and window #151

Open decipher3114 opened 2 weeks ago

decipher3114 commented 2 weeks ago

Add a function get_current() or get_active() for Monitor to get the Monitor with the mouse and Window which is active and focused.

manfye commented 1 week ago

yeah agree, is ther eany function for such ?