Commit graph

11 commits

Author SHA1 Message Date
Kirill Chibisov
2971386aea Fix crash when receiving non-utf8 data
This commit also changes return type of `load` and `load_primary`
to propagate errors during reading and parsing clipboard contents.
2020-03-05 11:27:12 +03:00
Victor Berger
715a926d1b Only bind wl_seat up to version 6 2020-02-27 15:59:48 +01:00
Kirill Chibisov
7b1651a2c1 Dynamically change thread sleeping time to increase throughput during high load
Previously we were always blocking for 50ms no matter what, but now
we'll be dynamically adjust our block ratio depending on the current
clipboard load. In the worst case scenario when user used the clipboard only
once will go with the next sequence: 0 1(16 times) 1 2 4 8 16 32 50 50
50 and so on, until the next user request.
2019-11-21 00:19:28 +08:00
Kirill Chibisov
e10bbfac70 Normalize loaded content for text/plain;charset=utf-8 mime type (#9)
Normalize \r\n and \r into \n
2019-10-30 08:03:25 +08:00
Kirill Chibisov
705939b3bf Only update serial on PtrEvent::Enter/Button when seat is already presented (#8)
Fixes primary selection storing, when mouse button was pressed inside surface
and then released outside.
2019-09-03 21:38:28 +08:00
trimental
be98d3917b Use cloned method 2019-08-14 00:10:02 +08:00
Kirill Chibisov
29b2884442 Implement gtk-primary-selection protocol (#7)
Add fallback to gtk primary selection, when zwp primary selection is not available
2019-08-13 23:58:12 +08:00
Christian Duerr
817340fa14 Update smithay-client-toolkit version (#5)
* Update smithay-client-toolkit version

* Fix formatting issues
2019-06-13 07:19:39 +08:00
Lucas Timmins
18e49392ca Fix primary clipboard storing and release 0.3.1 2019-06-08 12:08:01 +08:00
Lucas Timmins
60e77cd2b0 Add primary selection support 2019-06-07 10:46:22 +08:00
Lucas Timmins
1fa455ab6f Refactor thread code into threaded.rs 2019-06-07 10:46:22 +08:00