Skip to main content

open_framebuffer

Function open_framebuffer 

Source
fn open_framebuffer(
    conn: &RustConnection,
    root: Window,
    surface: &mut ShmSurface,
    region: (i16, i16, u16, u16),
    surfaces: usize,
) -> Option<FramebufferGrab>
Expand description

The shared framebuffer of root’s screen (framebuffer), where the server offers one and its pixels over the capture region read as an XShm grab of it into surface does, or None, saying why where the server offers one that is not used. The comparison is tried a few times, since the screen may change between the grab and the read.