Rename to smithay-clipboard
This commit is contained in:
parent
17011ea9f7
commit
0e959c7673
5 changed files with 10 additions and 10 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "smithay-wayland-clipboard"
|
name = "smithay-clipboard"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Lucas Timmins <timmins.s.lucas@gmail.com>"]
|
authors = ["Lucas Timmins <timmins.s.lucas@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -1,13 +1,13 @@
|
||||||
[](https://crates.io/crates/smithay-wayland-clipboard)
|
[](https://crates.io/crates/smithay-clipboard)
|
||||||
[](https://travis-ci.org/Smithay/wayland-clipboard)
|
[](https://travis-ci.org/Smithay/smithay-clipboard)
|
||||||
|
|
||||||
|
|
||||||
# Smithay Wayland Clipboard
|
# Smithay Clipboard
|
||||||
|
|
||||||
This crate provides access to the wayland clipboard with only requirement being a WlDisplay object.
|
This crate provides access to the wayland clipboard.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
The documentation for the master branch is [available online](https://smithay.github.io/wayland-clipboard/).
|
The documentation for the master branch is [available online](https://smithay.github.io/smithay-clipboard/).
|
||||||
|
|
||||||
The documentation for the releases can be found on [docs.rs](https://docs.rs/smithay-wayland-clipboard).
|
The documentation for the releases can be found on [docs.rs](https://docs.rs/smithay-clipboard).
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv=refresh content=0;url=smithay_wayland_clipboard/index.html />
|
<meta http-equiv=refresh content=0;url=smithay_clipboard/index.html />
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ fn main() {
|
||||||
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 env = Environment::from_display(&*display, &mut event_queue).unwrap();
|
let env = Environment::from_display(&*display, &mut event_queue).unwrap();
|
||||||
|
|
||||||
let mut clipboard = wayland_clipboard::WaylandClipboard::new_threaded(
|
let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(
|
||||||
display.get_display_ptr() as *mut std::ffi::c_void,
|
display.get_display_ptr() as *mut std::ffi::c_void,
|
||||||
);
|
);
|
||||||
let cb_contents = Arc::new(Mutex::new(String::new()));
|
let cb_contents = Arc::new(Mutex::new(String::new()));
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! let (display, mut event_queue) =
|
//! let (display, mut event_queue) =
|
||||||
//! 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 = wayland_clipboard::WaylandClipboard::new_threaded(
|
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(
|
||||||
//! display.get_display_ptr() as *mut std::ffi::c_void,
|
//! display.get_display_ptr() as *mut std::ffi::c_void,
|
||||||
//! );
|
//! );
|
||||||
//! clipboard.store("Test data");
|
//! clipboard.store("Test data");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue