From f4abc24f1178e20efcf5e9c06583c8429507ce8e Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 10 Jul 2020 21:35:02 +0300 Subject: [PATCH] Fix clipboard not working when seat has empty name --- CHANGELOG.md | 2 ++ Cargo.toml | 6 +++--- src/worker/mod.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b01ae51..747e2ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Fixed clipboard not working, when seat had empty name + # 0.5.0 -- 2020-05-20 - Minimal rust version was bumped to 1.41.0 diff --git a/Cargo.toml b/Cargo.toml index 8835361..147db1a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,8 +10,8 @@ license = "MIT" keywords = ["clipboard", "wayland"] [dependencies] -sctk = { package = "smithay-client-toolkit", version = "0.9.1", default-features = false } -wayland-client = { version = "0.26.3", features = ["dlopen"] } +sctk = { package = "smithay-client-toolkit", version = "0.10", default-features = false } +wayland-client = { version = "0.27", features = ["dlopen"] } [dev-dependencies] -sctk = { package = "smithay-client-toolkit", version = "0.9.1"} +sctk = { package = "smithay-client-toolkit", version = "0.10"} diff --git a/src/worker/mod.rs b/src/worker/mod.rs index 5c91050..bd994d0 100644 --- a/src/worker/mod.rs +++ b/src/worker/mod.rs @@ -144,7 +144,7 @@ fn worker_impl(display: Display, request_rx: Receiver, reply_tx: Sender // Listen for seats. let _listener = env.listen_for_seats(move |seat, seat_data, _| { - let detached_seat = seat.clone().detach(); + let detached_seat = seat.detach(); let pos = seats.iter().position(|st| st.seat == detached_seat); let index = pos.unwrap_or_else(|| { seats.push(SeatData::new(detached_seat, None, None));