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

new lib: clipboard #62

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

new lib: clipboard #62

wants to merge 10 commits into from

Conversation

kotontrion
Copy link
Collaborator

Adds a clipboard library using the wlr-data-control protocol. As this uses a wlr protocol, only wlroots based compositors will be supported.

The clipboard mechanism included in the wayland core protocol only allows to get clipboard changes while the client has focus. As this lib will be used mostly in bars, which don't have focus most of the time, it is basically impossible to implement a clipboard history, as many selection events will be missed. This is fixed by using the wlroots protocol, which gets these events regardless of focus. For non-wlroots compositors I would recommend using Gtk.Clipboard, which implements the clipboard using the core wayland protocol.

@rvveber
Copy link

rvveber commented Oct 28, 2024

I'm anticipating to see this

occured sometimes when used by multiple libs at the same time
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.

3 participants