mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 05:24:44 +00:00
Where arboard has neither data-control nor X11 (the Flatpak on a GNOME Wayland session), Copy and Paste used smithay-clipboard on the window's connection, which carries text only. They now use a core wl_data_device client on that connection. - One Copy offers the PNG as image/png, the SVG as image/svg+xml (with Include SVG Code on) and the text as text/plain;charset=utf-8, UTF8_STRING and text/plain. A format with no data is not offered. - Paste reads SVG, then text, then PNG. Blank text, or text that only names a picture, gives way to the PNG, and a failed or empty SVG read falls back to the types after it. The Paste menu item is enabled by the types offered, without reading any data. - The clipboard holds VectorCraft's Copy while its data source is not canceled and the offer has the Copy's types. - A read takes 64 MiB at most. Text waits 2 s, SVG and PNG 10 s off the UI thread. Another app's paste is sent on its own thread, 8 at once. smithay-clipboard is no longer a dependency of the app.