leechbar 0.5.4

A library for building your own bar on top of XCB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod geometry;
pub mod color;

use std::sync::Arc;
use error::*;
use xcb;

// Get the screen from an XCB Connection
pub fn screen(conn: &Arc<xcb::Connection>) -> Result<xcb::Screen> {
    conn.get_setup()
        .roots()
        .next()
        .ok_or_else(|| ErrorKind::XcbNoScreenError(()).into())
}