data-control: remove wlr-specific code
This commit is contained in:
parent
40f7bc2542
commit
dfc0a11935
12 changed files with 120 additions and 99 deletions
|
|
@ -12,7 +12,6 @@ use {
|
|||
offer_source_to_regular_client,
|
||||
wl_data_device::{ClipboardIpc, WlDataDevice},
|
||||
x_data_device::{XClipboardIpc, XPrimarySelectionIpc},
|
||||
zwlr_data_control_device_v1::ZwlrDataControlDeviceV1,
|
||||
zwp_primary_selection_device_v1::{
|
||||
PrimarySelectionIpc, ZwpPrimarySelectionDeviceV1,
|
||||
},
|
||||
|
|
@ -1037,17 +1036,6 @@ impl WlSeatGlobal {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn for_each_wlr_data_device<C>(&self, ver: Version, mut f: C)
|
||||
where
|
||||
C: FnMut(&Rc<ZwlrDataControlDeviceV1>),
|
||||
{
|
||||
for dd in self.wlr_data_devices.lock().values() {
|
||||
if dd.version >= ver {
|
||||
f(dd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn surface_pointer_frame(&self, surface: &WlSurface) {
|
||||
self.surface_pointer_event(POINTER_FRAME_SINCE_VERSION, surface, |p| p.send_frame());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue