Is Wayland supported by default, or is additional logic required for this?
timvisee opened this issue · 1 comments
timvisee commented
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 commented
It's impossible to do this automatically. You require a display handle from your window to access the clipboard on Wayland.