ipc: remove X-only code from traits
This commit is contained in:
parent
1ca5d43557
commit
487efafdf5
6 changed files with 9 additions and 64 deletions
|
|
@ -6,7 +6,7 @@ use {
|
|||
x_data_offer::XDataOffer, x_data_source::XDataSource, DeviceData, IpcLocation,
|
||||
IpcVtable, OfferData, Role,
|
||||
},
|
||||
wl_seat::{WlSeatError, WlSeatGlobal},
|
||||
wl_seat::WlSeatGlobal,
|
||||
},
|
||||
state::State,
|
||||
xwayland::XWaylandEvent,
|
||||
|
|
@ -77,17 +77,6 @@ impl<T: XIpc> IpcVtable for T {
|
|||
dd.seat.clone()
|
||||
}
|
||||
|
||||
fn set_seat_selection(
|
||||
seat: &Rc<WlSeatGlobal>,
|
||||
source: &Rc<Self::Source>,
|
||||
_serial: Option<u64>,
|
||||
) -> Result<(), WlSeatError> {
|
||||
match source.location {
|
||||
IpcLocation::Clipboard => seat.set_selection(Some(source.clone())),
|
||||
IpcLocation::PrimarySelection => seat.set_primary_selection(Some(source.clone())),
|
||||
}
|
||||
}
|
||||
|
||||
fn create_offer(
|
||||
dd: &Rc<Self::Device>,
|
||||
data: OfferData<Self::Device>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue