pub fn with_seat_data<T, F: FnOnce(&SeatData) -> T>(
    seat: &WlSeat,
    f: F
) -> Option<T>
Expand description

Access the data associated with this seat

The provided closure is given the SeatData as argument, and its return value is returned from this function.

If the provided WlSeat has not yet been initialized or is not managed by SCTK, None is returned.

If the seat has been removed by the compositor, the defunct field of the SeatData will be set to true. This handler will not automatically detroy the output by calling its release method, to avoid interfering with your logic.