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§
sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
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.