Fix primary clipboard storing and release 0.3.1

This commit is contained in:
Lucas Timmins 2019-06-08 12:08:01 +08:00
parent 59fa30aba0
commit 18e49392ca
3 changed files with 8 additions and 1 deletions

View file

@ -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()`

View file

@ -1,6 +1,6 @@
[package]
name = "smithay-clipboard"
version = "0.3.0"
version = "0.3.1"
authors = ["Lucas Timmins <timmins.s.lucas@gmail.com>"]
edition = "2018"
description = "Provides access to the wayland clipboard for client applications."

View file

@ -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);
}
}