You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
viewer: paste on Wayland compositors without data-control, such as GNOME #426
Paste in the native viewer (#366) reads the host clipboard on Wayland through the data-control protocol. Hyprland, Sway, KDE and river offer it. GNOME's Mutter does not, so Paste there shows "Paste unavailable".
The viewer window has keyboard focus when the human clicks Paste, so a reader through the window's own wl_data_device could read the clipboard on compositors without data-control. It must keep the rules Paste has today: read only after the click under a live lease, UTF-8 text only, 16 KiB and one second at most, the stop check, and no text in logs, errors or events.
Read the clipboard through the viewer window's wl_data_device when data-control is missing
Test on a compositor without data-control, in an isolated session
Activity
ElbertePlinio commentedon Oct 28, 2026
Found while building #366 in #427. On a compositor without data-control, the Paste button shows "Paste unavailable".