Trait XClientHandler

Source
pub trait XClientHandler {
    // Required methods
    fn map_client(&self, id: Xid) -> Result<()>;
    fn unmap_client(&self, id: Xid) -> Result<()>;
    fn destroy_client(&self, id: Xid) -> Result<()>;
    fn kill_client(&self, id: Xid) -> Result<()>;
    fn focus_client(&self, id: Xid) -> Result<()>;

    // Provided methods
    fn map_client_if_needed(&self, win: Option<&mut Client>) -> Result<()> { ... }
    fn unmap_client_if_needed(&self, win: Option<&mut Client>) -> Result<()> { ... }
}
Expand description

Management of the visibility and lifecycle of X clients

Required Methods§

Source

fn map_client(&self, id: Xid) -> Result<()>

Map a client to the display.

Source

fn unmap_client(&self, id: Xid) -> Result<()>

Unmap a client from the display.

Source

fn destroy_client(&self, id: Xid) -> Result<()>

Destroy an existing client.

Source

fn kill_client(&self, id: Xid) -> Result<()>

Forcably kill an existing client.

Source

fn focus_client(&self, id: Xid) -> Result<()>

Mark the given client as having focus

Provided Methods§

Source

fn map_client_if_needed(&self, win: Option<&mut Client>) -> Result<()>

Map a known penrose Client if it is not currently visible

Source

fn unmap_client_if_needed(&self, win: Option<&mut Client>) -> Result<()>

Unmap a known penrose Client if it is currently visible

Implementors§

Source§

impl XClientHandler for XcbConnection

Source§

impl XClientHandler for XcbDraw

Source§

impl<T> XClientHandler for T
where T: StubXClientHandler,