wayland.data_device: review docs & API
This commit is contained in:
parent
6454ebecf0
commit
0ac045eb17
|
@ -31,7 +31,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
//! # extern crate wayland_server;
|
//! # extern crate wayland_server;
|
||||||
//! use smithay::wayland::data_device::{init_data_device, default_action_chooser, DnDIconRole};
|
//! use smithay::wayland::data_device::{init_data_device, default_action_chooser};
|
||||||
//! # use smithay::wayland::compositor::compositor_init;
|
//! # use smithay::wayland::compositor::compositor_init;
|
||||||
//!
|
//!
|
||||||
//! # let mut display = wayland_server::Display::new();
|
//! # let mut display = wayland_server::Display::new();
|
||||||
|
@ -104,10 +104,6 @@ pub enum DataDeviceEvent {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The role applied to surfaces used as DnD icons
|
|
||||||
#[derive(Debug, Default)]
|
|
||||||
pub struct DnDIconRole;
|
|
||||||
|
|
||||||
enum Selection {
|
enum Selection {
|
||||||
Empty,
|
Empty,
|
||||||
Client(wl_data_source::WlDataSource),
|
Client(wl_data_source::WlDataSource),
|
||||||
|
|
Loading…
Reference in New Issue