Skip to main content

NEXT_CAPTURE_ID

Static NEXT_CAPTURE_ID 

Source
pub(crate) static NEXT_CAPTURE_ID: AtomicU64
Expand description

Hands each ScreenCapture a unique, monotonic id — the token WAYLAND_OWNERS compares to decide which instance is allowed to stop a display’s capture. Starts at 1 so 0 can mean “no owner”.