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

Is Wayland supported by default, or is additional logic required for this? #27

Closed
timvisee opened this issue Feb 23, 2021 · 1 comment
Closed

Comments

@timvisee
Copy link
Contributor

timvisee commented Feb 23, 2021

It is unclear to me how Wayland support works.

The crate provides the wayland_clipboard module for interacting with the Wayland clipboard. The copypasta::ClipboardContext definition always provides a X11 context (on Linux) though.

So, does this mean Wayland isn't automatically supported? And does this mean that adding Wayland support requires additional logic by the implementer to determine at runtime whether to construct an X11 or a Wayland clipboard context, including figuring out the Wayland display pointer?

@chrisduerr
Copy link
Member

It's impossible to do this automatically. You require a display handle from your window to access the clipboard on Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants