rxscreen 0.1.7

A wrapper around libx11 to capture screenshots and save them
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::os::raw::{c_int, c_uint};

use crate::ffi::*;

extern "C" {
    pub fn XQueryPointer(
        display: XDisplay,
        w: XWindow,
        root_return: *const XWindow,
        child_return: *const XWindow,
        root_x_return: *const c_int,
        root_y_return: *const c_int,
        win_x_return: *const c_int,
        win_y_return: *const c_int,
        mask_return: *const c_uint,
    ) -> c_int;
}