Skip to content

Allow compositors implementing ext-data-control to sync (bump dependencies) - #53

Open
RedSQL wants to merge 1 commit into
dnut:masterfrom
RedSQL:wl-dependency-bump
Open

Allow compositors implementing ext-data-control to sync (bump dependencies)#53
RedSQL wants to merge 1 commit into
dnut:masterfrom
RedSQL:wl-dependency-bump

Conversation

@RedSQL

@RedSQL RedSQL commented Sep 8, 2026

Copy link
Copy Markdown

Summary

clipboard-sync has relied on 0.7.0 version of wl-clipboard-rs that tried to resolve a zwlr_data_control_manager_v1 protocol which would fail if not implemented by compositor. Wayland has had an official data control protocol in the upstream for a while now, but the resolution of it would fail simply because the wl-clipboard-rs dependency would not know to look for it.

Changes

I have:

  • Bumped up the wl-clipboard-rs dependency
    • And while I was at it wayland-client too.
  • Resolved the ConnectError enum no longer having NoCompositorListening by swapping it with ConnectError::NoCompositor
  • Changed wording in the warning message to reflect the changes
  • Bumped up clipboard-sync version number to v0.2.1

Now with the new wl-clipboard-rs version, compositors implementing either (or both) ext-data-control-v1 or wlr-data-control-unstable-v1 will work! So any compositors listed here (upstream) and here (wlroots) will have a working clipboard sync now.

Additional notes

Sadly I don't think this closes any issue? It might address some that error out with being unable to access clipboard but I am not entirely sure.

I have compiled and ran the target binary with my changes to see if it works, and from my testing it works perfectly fine on my workstation running KDE Plasma 6.7.4.

Fixes issues with clipboard-sync using the fallback path on compositors without
zwlr_data_control_manager_v1 support. Now it's upstreamed and is known as
ext-data-control-v1, which will be used by wl-clipboard-rs if supported in the
compositor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant