use thiserror::Error; pub type Result = std::result::Result; #[derive(Debug, Error)] pub enum Error { #[error("xcb returned screen that doesn't exist")] NoSuchScreen, #[error("other wm is running")] OtherWMRunning, #[error("connection error: {0}")] ConnectionError(#[from] xcb::ConnError), #[error("protocol error: {0}")] ProtocolError(#[from] xcb::ProtocolError), #[error("generic xcb error: {0}")] XCBError(#[from] xcb::Error), }