Products › lamco-dsi-tools › Interfaces › wlr-data-control

wlr-data-control: Which compositors support it, and how to check

wlr-data-control (zwlr_data_control_manager_v1) is the wlroots protocol clipboard managers use on Wayland: Which compositors offered it, and how to check.

Wayland protocol zwlr_data_control_manager_v1

wlr-data-control, the Wayland protocol zwlr_data_control_manager_v1, lets a client read and set the clipboard and the primary selection without a focused window. It came from the wlroots project, and on Sway and similar compositors it's what clipboard managers, clipboard history tools, command-line copy and paste utilities and remote desktop servers use to reach the clipboard. 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

The core Wayland clipboard, wl_data_device, gives a client the selection only while one of its windows has the keyboard focus. A clipboard manager running in the background needs more, and wlr-data-control is the wlroots protocol that provides it. It's unstable, as the z in its name says, and is at version 2, which added the primary selection. Its successor in wayland-protocols, ext-data-control-v1, has the same interfaces under new names.

The client binds the manager and calls get_data_device with a seat. The zwlr_data_control_device_v1 sends data_offer for each new offer, then selection, and from version 2 primary_selection, to say which offer the clipboard or primary selection now is. Each offer lists its mime types with offer events, and receive asks for the content in one mime type through a pipe the client supplies. To set the clipboard, the client creates a source with create_data_source, lists mime types with offer, and calls set_selection or set_primary_selection. The source gets a send event, with a mime type and a file descriptor, each time someone pastes, and cancelled when it loses the selection. finished tells the client the device is no longer valid.

No dialog is involved: The compositor decides which clients may bind it. On a desktop that offers neither data-control protocol, which is how GNOME is built, clipboard managers of this kind have nothing to bind, and a program without focus reaches the clipboard only through the Clipboard portal on a RemoteDesktop session.

Which desktops offered it

DesktopState
GNOME Shell 48.7 (Debian 13)absent
GNOME Shell 51.0 (Fedora 45)absent
KDE Plasma, KWin 6.5.6 (NixOS)absent
KDE Plasma, KWin 6.8.2 (KDE neon)absent
Sway 1.9working
Hyprland 0.56.2working
COSMIC, cosmic-comp 1.0.0working
labwc 0.20.3 (Budgie session, CachyOS)working
Cinnamon Wayland session (Linux Mint)absent

Each cell is from one capture of one version of the desktop on one virtual machine, taken on 2026-11-27 or 2026-11-28 with dsisee observe, which needs no dialog for this route and reads working where the selections arrived. KWin 6.5.6 and 6.8.2 offer ext-data-control-v1 and not this protocol, Sway 1.9 offers this one only, and Hyprland, COSMIC and labwc offer both. The GNOME and Cinnamon captures raised CLIP-002.

The README's run record lists clipboard set and clipboard observe over wlr-data-control on Sway 1.9, paired with dsitell clipboard.

How to check it with lamco-dsi-tools

dsisee clipboard routes                                          # which clipboard routes the desktop offers; reads no content
dsisee clipboard observe --route wlr-data-control --duration 10  # each offer, its mime types, and which is the selection
dsisee clipboard observe --route wlr-data-control --read --duration 10 --out watch.json   # length and SHA-256 of each
dsitell health watch.json                                        # the clipboard function and its routes

clipboard routes prints the clipboard part of the health summary: Each data-control manager the registry holds, and the portal's Clipboard and RemoteDesktop interfaces. clipboard observe picks a route and says which and why, or takes the one --route names. It records offers, mime types and each change of the selection, and marks what was there when it bound as initial. With --read it reads each selection in one mime type, preferring the text types unless --mime names others, and stops a read at --max-bytes or --read-timeout. It never stores content unless --keep-content asks for a number of bytes. On a compositor that offers both protocols, run it once with each --route to compare them.

Driving it with dsido

dsisee clipboard observe --read --duration 15 --out watch.json &     # start the watcher first
dsido clipboard set --route wlr-data-control --hold 10 --out set.json # make marked content the selection
dsitell clipboard set.json watch.json                                # set to seen, seen to received, round trip

dsido clipboard set replaces what the clipboard holds and doesn't put it back, so copy anything you need first. It holds the selection for --hold seconds and records each read with when it was asked for and when the content had been written. dsitell clipboard pairs the set with what the watcher read by length and SHA-256, and leaves out the set figures for a selection the watcher found already there.

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