logo

Trait penrose::core::xconnection::XEventHandler[][src]

pub trait XEventHandler {
    fn flush(&self) -> bool;
fn wait_for_event(&self) -> Result<XEvent>;
fn send_client_event(&self, msg: ClientMessage) -> Result<()>;
fn build_client_event(
        &self,
        kind: ClientMessageKind
    ) -> Result<ClientMessage>; }
Expand description

Sending and receiving X events

Required methods

Flush pending actions to the X event loop

Wait for the next event from the X server and return it as an XEvent

Send an X event to the target client

The msg being sent can be composed by hand or, for known common message types, generated using the build_client_event method.

Build the required event data for sending a known client event.

Implementors