Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behaviour on Linux with two clipboards #84

Open
john01dav opened this issue Dec 31, 2021 · 1 comment
Open

Incorrect behaviour on Linux with two clipboards #84

john01dav opened this issue Dec 31, 2021 · 1 comment

Comments

@john01dav
Copy link

I encountered this bug when using this library to implement copy/paste for my GUI library. It turns out that on Linux there are two clipboards that most programs interact with differently. I'd like to implement this standard (albeit very strange) behaviour in my GUI library, but this library does not currently have support for this as far as I can tell.

@Ryan1729
Copy link

Ryan1729 commented Jun 2, 2022

I'm not affiliated with this crate, but I happened to look at this issue and I want to point out that this library does have some support for the "Primary Selection", (the second clipboard.)

Specifically you can get an X11ClipboardContext<Primary> as well as a X11ClipboardContext<Clipboard>, which both implement ClipboardProvider. By default you get an X11ClipboardContext<Clipboard>, but you can specify that you want an X11ClipboardContext<Primary>. So, under X11 you can access both clipboards separately.

The crate has this brief example showing use of an X11ClipboardContext<Primary>.

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

No branches or pull requests

2 participants