smithay-clipboard 0.6.0

Provides access to the wayland clipboard for client applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sctk::reexports::client::protocol::wl_keyboard::WlKeyboard;
use sctk::reexports::client::protocol::wl_pointer::WlPointer;
use sctk::reexports::client::protocol::wl_seat::WlSeat;

/// Data to track seat capability changes and handle release of the objects.
pub struct SeatData {
    pub seat: WlSeat,
    pub keyboard: Option<WlKeyboard>,
    pub pointer: Option<WlPointer>,
}

impl SeatData {
    pub fn new(seat: WlSeat, keyboard: Option<WlKeyboard>, pointer: Option<WlPointer>) -> Self {
        SeatData { seat, keyboard, pointer }
    }
}