Products › lamco-dsi-tools › Interfaces › ext-data-control-v1
ext-data-control-v1: Clipboard managers on Wayland, and who supports it
ext-data-control-v1 is the Wayland protocol clipboard managers use to read and set the clipboard without focus: Which compositors offered it, and how to check.
ext-data-control-v1 is the Wayland protocol, ext_data_control_manager_v1, that lets a client read and set the clipboard and the primary selection without having a focused window. Clipboard managers and clipboard history tools on Wayland depend on it, and so do remote desktop servers that keep a remote machine's clipboard in step with the desktop's. lamco-dsi-tools (DSI: Desktop session interfaces) reads whether the compositor advertises it, watches the selections through it, and with dsido sets marked content and times how it comes back.
What it is
In core Wayland, a client sees the selection through wl_data_device only while one of its windows has the keyboard focus. That's why a clipboard manager that runs in the background can't work with the core protocol alone. The protocol's own text describes what data control adds: It "allows a privileged client to control data devices", to manage the current selection and take the role of a clipboard manager.
ext-data-control-v1 is in the staging area of wayland-protocols and has the same shape as the older wlr-data-control. The client binds the manager and calls get_data_device for a seat. The ext_data_control_device_v1 then sends data_offer for each new offer, followed by selection or primary_selection to say which offer is now the clipboard or the primary selection. Each ext_data_control_offer_v1 lists its mime types with offer events, and receive asks for the content in one mime type, written by the source into a pipe the client hands over. To set the clipboard, the client creates a source with create_data_source, lists its mime types with offer, and calls set_selection or set_primary_selection. The source then gets a send event with a mime type and a file descriptor each time a reader asks, and cancelled when something else takes the selection.
No dialog is involved. Which clients may bind the manager is the compositor's decision. A desktop that offers neither data-control protocol leaves a program without focus one route to the clipboard: The Clipboard portal on a RemoteDesktop session.
Which desktops offered it
| Desktop | State |
|---|---|
| GNOME Shell 48.7 (Debian 13) | absent |
| GNOME Shell 51.0 (Fedora 45) | absent |
| KDE Plasma, KWin 6.5.6 (NixOS) | working |
| KDE Plasma, KWin 6.8.2 (KDE neon) | working |
| Sway 1.9 | absent |
| Hyprland 0.56.2 | working |
| COSMIC, cosmic-comp 1.0.0 | working |
| labwc 0.20.3 (Budgie session, CachyOS) | working |
| Cinnamon Wayland session (Linux Mint) | absent |
Each cell is from one capture of one version of each desktop on one virtual machine, taken on 2026-11-27 or 2026-11-28 with dsisee observe. This route needs no dialog, so it reads working where the selections arrived. GNOME offers no data-control protocol, and its captures raised CLIP-002, as did the Cinnamon session's. KWin offers ext-data-control-v1, Sway 1.9 offers wlr-data-control, and Hyprland, COSMIC and labwc offer both.
The README's run record lists clipboard set and clipboard observe over ext-data-control, with their pairing, on KDE Plasma 6.8.2.
How to check it with lamco-dsi-tools
dsisee clipboard routes # which clipboard routes the desktop offers; reads no content
dsisee clipboard observe --route ext-data-control --duration 10 # each offer, its mime types, and which is the selection
dsisee clipboard observe --read --duration 10 --out watch.json # also read each selection: length and SHA-256 only
dsitell health watch.json # the clipboard function and its routes
dsisee clipboard routes reads the registry for both data-control managers and the portal for Clipboard and RemoteDesktop, and prints the clipboard part of the health summary. clipboard observe records each offer, its mime types and each change of the selections, and marks what was there when it bound as initial. With --read it reads each selection in one mime type and records the length, the SHA-256, and when the first and last byte came. The content itself isn't stored unless --keep-content names a number of bytes, since a clipboard can hold a password.
Driving it with dsido
dsisee clipboard observe --read --duration 15 --out watch.json & # start the watcher first
dsido clipboard set --route ext-data-control --hold 10 --out set.json # make marked content the selection
dsitell clipboard set.json watch.json # set to seen, seen to received, and the round trip
dsido clipboard set replaces what the clipboard holds and doesn't put it back. It records each time a reader asks for the content, and the capture holds the content's length and SHA-256, never the content. --primary sets the primary selection instead, and --size makes the content large. dsitell clipboard pairs the two captures by the content's fingerprint and exits 1 when the content didn't come back.
Findings
CLIP-001: No clipboard route was found.CLIP-002: The compositor offers no data-control protocol.CLIP-003: A clipboard dissector or driver failed.CLIP-004: A selection's content didn't arrive whole.CLIP-006: A clipboard driver couldn't write its content.
Related
- wlr-data-control, the wlroots protocol of the same shape.
- Clipboard portal, the route where no data-control protocol is offered.
- Wayland registry, where the manager is advertised.
- dsisee reference, for the clipboard commands.
- Lamco RDP Server, a Wayland-native RDP server for Linux.
- ext-data-control-v1 on Wayland Explorer.