pub trait RequestDataExt: Send + Sync {
    // Required methods
    fn app_id(&self) -> Option<&str>;
    fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
    fn surface(&self) -> Option<&WlSurface>;
}
Expand description

Data attached to a token request

Required Methods§

source

fn app_id(&self) -> Option<&str>

App_id of the application requesting the token, if applicable

source

fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>

Seat and serial of the window requesting the token, if applicable.

Warning: Many compositors will issue invalid tokens for requests without recent serials. There is no way to detect this from the client-side.

source

fn surface(&self) -> Option<&WlSurface>

Surface of the window requesting the token, if applicable.

Warning: Many compositors will issue invalid tokens for requests from unfocused surfaces. There is no way to detect this from the client-side.

Implementors§