aboutsummaryrefslogtreecommitdiff
path: root/copypasta/examples/wayland.rs
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-08-12 02:16:24 +0300
committerChristian Duerr <contact@christianduerr.com>2019-08-16 01:33:37 +0200
commit1da986ae2b5dd7c54875d45716eb2820920feaae (patch)
tree84809cb43ba098262c25ed798721242f60e8062f /copypasta/examples/wayland.rs
parent5cf77bf250712bf2630322f92c1025baa364922e (diff)
downloadr-alacritty-1da986ae2b5dd7c54875d45716eb2820920feaae.tar.gz
r-alacritty-1da986ae2b5dd7c54875d45716eb2820920feaae.tar.bz2
r-alacritty-1da986ae2b5dd7c54875d45716eb2820920feaae.zip
Fix smithay-clipboard integration
Fixes: #2574
Diffstat (limited to 'copypasta/examples/wayland.rs')
-rw-r--r--copypasta/examples/wayland.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/copypasta/examples/wayland.rs b/copypasta/examples/wayland.rs
index a718a3e8..159b708c 100644
--- a/copypasta/examples/wayland.rs
+++ b/copypasta/examples/wayland.rs
@@ -14,7 +14,7 @@ mod wayland {
extern crate copypasta;
extern crate smithay_client_toolkit as sctk;
- use wayland::copypasta::wayland_clipboard::{Clipboard, WaylandClipboardContext};
+ use wayland::copypasta::wayland_clipboard::create_clipboards;
use wayland::copypasta::ClipboardProvider;
use std::io::{Read, Seek, SeekFrom, Write};
@@ -37,7 +37,7 @@ mod wayland {
Display::connect_to_env().expect("Failed to connect to the wayland server.");
let env = Environment::from_display(&*display, &mut event_queue).unwrap();
- let mut ctx = WaylandClipboardContext::<Clipboard>::new(&display);
+ let (mut ctx, _) = create_clipboards(&display);
let cb_contents = Arc::new(Mutex::new(String::new()));
let seat = env.manager.instantiate_range(2, 6, NewProxy::implement_dummy).unwrap();