summaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.rs b/src/input.rs
index d0cbc600..f1022814 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -25,7 +25,7 @@
//! TODO handling xmodmap would be good
use std::borrow::Cow;
-use clipboard::ClipboardContext;
+use copypasta::{Clipboard, Load};
use glutin::{ElementState, VirtualKeyCode, MouseButton};
use glutin::{Mods, mods};
@@ -349,8 +349,8 @@ impl Processor {
Action::Esc(s) => notifier.notify(s.as_bytes()),
Action::Paste => {
println!("paste request");
- let clip = ClipboardContext::new().expect("get clipboard");
- clip.get_contents()
+ let clip = Clipboard::new().expect("get clipboard");
+ clip.load_selection()
.map(|contents| {
println!("got contents");
notifier.notify(contents.into_bytes())