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

Implement clipboard for linux #6

Closed
wants to merge 1 commit into from
Closed

Implement clipboard for linux #6

wants to merge 1 commit into from

Conversation

khvorov45
Copy link

Added stubs for windows as well. Got incremental transfers working so you can paste large (>256k) strings if that's ever needed. These incremental transfers don't seem to be necessary for copying large strings to other programs (maybe it's a legacy thing?), so I just send what we've got.

There is an invisible window associated with the clipboard. That's how linux programs seem to do it generally. Allows largely bypassing the X server when copying stuff within the program's windows (check if the invisible window owns the clipboard and use your own buffer rather than doing the usual request-response thing).

@khvorov45 khvorov45 closed this Feb 11, 2022
@khvorov45 khvorov45 deleted the clipboard branch February 11, 2022 10:22
nakst added a commit that referenced this pull request Aug 4, 2023
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.

1 participant