Commit graph

30 commits

Author SHA1 Message Date
Kirill Chibisov
8a81be7c0a
Avoid panic on dispatch failure (#23)
Prevent crash when calling unwrap on either sync_roundtrip
or dispatch_pending, and handle such case by replying downstream
that clipboard is dead.
2020-08-27 13:08:26 +02:00
Kirill Chibisov
2aea170962 Fix fd leak from keymap updates 2020-08-27 12:43:38 +02:00
Kirill Chibisov
d688c33f23 Advertise UTF8_STRING mimetype
Certain applications only accept UTF8_STRING mimetype like Geany
even so they are Wayland native.
2020-08-10 13:18:40 +02:00
Kirill Chibisov
7fc533d55f Fix the crash when there's no focus on a seat
If the user asks for clipboard data with neither wl_keyboard
nor wl_pointer focus being presented on a seat, we should ignore the
request and reply with error, instead of crashing.
2020-08-05 22:37:54 +02:00
Victor Berger
40d0f2afc5
version 0.5.1 2020-07-10 20:43:41 +02:00
Kirill Chibisov
f4abc24f11 Fix clipboard not working when seat has empty name 2020-07-10 20:42:26 +02:00
Kirill Chibisov
e497d7f526
Fix minimum rust version information in CHANGELOG (#18) 2020-05-20 15:40:27 +02:00
Victor Berger
c4545c4dc8
version 0.5.0 2020-05-20 10:04:44 +02:00
Kirill Chibisov
bb652c775b
Update smithay-clipboard to SCTK 0.9.1 (#16)
This commit entirely reworks the internal structure of the entire crate,
as well as some of its APIs. This crate only accepts a C pointer to a
Wayland display object, since the target audience of this crate are
libraries without a wayland-client types. Also since seat information is
not presented in such clients most of the time, the clipboard entirely
relies on its seat tracking.
2020-05-10 15:40:03 +02:00
Victor Berger
a4240ad835 version 0.4 2020-03-09 22:46:54 +01:00
Kirill Chibisov
b783b2250c Fix clipboard dying after TTY switch 2020-03-09 01:34:12 +03:00
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
9855d34e4a version 0.3.7 2020-02-27 16:01:09 +01:00
Victor Berger
715a926d1b Only bind wl_seat up to version 6 2020-02-27 15:59:48 +01:00
trimental
e28a54171f Release 0.3.6 2019-11-21 17:20:20 +08: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
trimental
3f727066e5 Release 0.3.5 2019-09-03 21:39:44 +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
b2b0e4099d Release 0.3.4 2019-08-14 00:10:31 +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
trimental
2fdbb82802 Release 0.3.3 2019-06-14 16:15:55 +08:00
trimental
f4900f414d Release 0.3.2 2019-06-13 07:30:05 +08:00
Lucas Timmins
18e49392ca Fix primary clipboard storing and release 0.3.1 2019-06-08 12:08:01 +08:00
Lucas Timmins
59fa30aba0 Release 0.3.0 2019-06-07 10:56:47 +08:00
Lucas Timmins
5c3fc2719c Release 0.2.1 2019-04-27 23:36:16 +08:00
Lucas Timmins
fb4e98165a Release 0.2.0 2019-04-27 22:26:09 +08:00
Lucas Timmins
bd004e8628 Release 0.1.1 2019-04-24 01:28:31 +08:00
Lucas Timmins
e0eb10cde6 Release 0.1.0 2019-02-14 18:23:55 +08:00
Lucas Timmins
17011ea9f7 Initial commit 2019-02-10 01:28:53 +08:00