Refactor thread code into threaded.rs

This commit is contained in:
Lucas Timmins 2019-06-06 13:33:10 +08:00 committed by trimental
parent 5c3fc2719c
commit 1fa455ab6f
3 changed files with 360 additions and 320 deletions

View file

@ -18,7 +18,7 @@ fn main() {
Display::connect_to_env().expect("Failed to connect to the wayland server.");
let env = Environment::from_display(&*display, &mut event_queue).unwrap();
let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(&display);
let mut clipboard = smithay_clipboard::WaylandClipboard::new(&display);
let cb_contents = Arc::new(Mutex::new(String::new()));
let seat = env