diff --git a/CHANGELOG.md b/CHANGELOG.md index ddb8262..7469c55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 0.3.1 -- 2019-06-08 + +- Fix primary clipboard storing + ## 0.3.0 -- 2019-06-07 - Add support for primary selection through `store_primary()` and `load_primary()` diff --git a/Cargo.toml b/Cargo.toml index ea9f417..3378550 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smithay-clipboard" -version = "0.3.0" +version = "0.3.1" authors = ["Lucas Timmins "] edition = "2018" description = "Provides access to the wayland clipboard for client applications." diff --git a/src/threaded.rs b/src/threaded.rs index eb2563e..13bb102 100644 --- a/src/threaded.rs +++ b/src/threaded.rs @@ -370,6 +370,9 @@ fn clipboard_thread( (), ) }); + if let Ok(source) = &source { + source.offer("text/plain;charset=utf-8".to_string()); + } primary_device.set_selection(source.ok().as_ref(), *enter_serial); } }