From 1da986ae2b5dd7c54875d45716eb2820920feaae Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Mon, 12 Aug 2019 02:16:24 +0300 Subject: Fix smithay-clipboard integration Fixes: #2574 --- copypasta/examples/wayland.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'copypasta/examples/wayland.rs') 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::::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(); -- cgit