fn from_window_id(conn: &xcb::Connection, id: xcb::Window) -> Self {
        let cookie = xcb::get_geometry(&conn, id);
        let geom = cookie.get_reply().unwrap();
        WindowGeom {
            x: geom.x(),
            y: geom.y(),
            width: geom.width(),
            height: geom.height(),
        }
    }
/// Creates a WindowGeom structure given the window's id
Creates a WindowGeom structure given the window's id
Creates a WindowGeom structure given the window ' s id
fn from_window_id(conn: &xcb::Connection, id: xcb::Window) -> Self {
        let cookie = xcb::get_geometry(&conn, id);
        let geom = cookie.get_reply().unwrap();
        WindowGeom {
            x: geom.x(),
            y: geom.y(),
            width: geom.width(),
            height: geom.height(),
        }
    }
fn from_window_id ( conn : & xcb :: Connection , id : xcb :: Window ) -> Self { let cookie = xcb :: get_geometry ( & conn , id ) ; let geom = cookie . get_reply ( ) . unwrap ( ) ; WindowGeom { x : geom . x ( ) , y : geom . y ( ) , width : geom . width ( ) , height : geom . height ( ) , } }
Creates a WindowGeom structure given the window's id
Creates a WindowGeom structure given the window ' s id
conn
&xcb::Connection
id
xcb::Window
conn
&xcb::Connection
id
xcb::Window