Remember the clipboard's types, and list them without reading it #25
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wayfinder:map
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
jeff/harrier#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #23
The Wayland platform collects every MIME type an offer advertises, but once the offer becomes the clipboard,
.selectionfrees the list (offer_types). Onlyhas_textsurvives. The 5522 listing (.) is answered by reading all of the clipboard's text and reportingtext/plain. A keyboard paste event's listing is also onlytext/plain.What done looks like
UTF8_STRING,TEXT,STRING,TARGETS, anything without a/) are left out of what is reported.wl-copy -t image/png, the listing namesimage/png.Done in
0a4b0ba. The sway VM test now puts an image on the clipboard withwl-copy -t image/pngand checks that the listing namesimage/png. Two things changed shape along the way. harrier's own clipboard lists astext/plain;charset=utf-8 text/plain, the types it offers. And a keyboard paste with paste events on now reads nothing at all: it lists the types, so a clipboard holding only an image is announced too, where before nothing happened.