Skip to content

Add primary clipboard support back#3325

Open
luca020400 wants to merge 2 commits into
iced-rs:masterfrom
luca020400:luca/primary
Open

Add primary clipboard support back#3325
luca020400 wants to merge 2 commits into
iced-rs:masterfrom
luca020400:luca/primary

Conversation

@luca020400
Copy link
Copy Markdown

When iced moved to arboard it "lost" the capability to interface to the primary clipboard on Linux.

This change adds back support for it by exposing {read,write}_primary(...) and wiring it up in the runtime.

I didn't create the equivalent versions for read_{text,image,...} for simplicity, and also because I don't expect anything but text to be handled for this specific clipboard.

On top of that it also includes support some patches that adds support for middle click handling to interface with this clipboard on linux, those have been extracted from the fork used in halloy (and updated to the new APIs)

@luca020400 luca020400 changed the title Add primary clip support back Add primary clipboard support back May 4, 2026
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.

2 participants