This commit is contained in:
Lucas Timmins 2019-02-14 18:01:57 +08:00
parent a36d3e3e8e
commit 0ad92d3a0c
2 changed files with 7 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# Contributing # Contributing
Smithay Wayland Clipboard is open to contributions from anyone. Smithay Clipboard is open to contributions from anyone.
## Smithay Project ## Smithay Project

View file

@ -1,16 +1,14 @@
//! Smithay Wayland Clipboard //! Smithay Clipboard
//! //!
//! Provides access to the wayland clipboard with only requirement being a WlDisplay //! Provides access to the wayland clipboard with only requirement being a WlDisplay
//! object //! object
//! //!
//! ```no_run //! ```no_run
//! let (display, mut event_queue) = //! let (display, _) =
//! Display::connect_to_env().expect("Failed to connect to the wayland server."); //! Display::connect_to_env().expect("Failed to connect to the wayland server.");
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded( //! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(&display);
//! display.get_display_ptr() as *mut std::ffi::c_void, //! clipboard.store("seat0", "Test data");
//! ); //! println!("{}", clipboard.load("seat0"));
//! clipboard.store("Test data");
//! println!(clipboard.load());
//! ``` //! ```
#![warn(missing_docs)] #![warn(missing_docs)]