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

Clipboard access #132

Merged
merged 5 commits into from
Dec 19, 2019
Merged

Clipboard access #132

merged 5 commits into from
Dec 19, 2019

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Dec 19, 2019

Text pasting - Iced

This PR implements clipboard access and adds logic for pasting text in TextInput.

For now, the implementation uses a new crate I created: window_clipboard, which allows to obtain a Clipboard from a raw-window-handle.

The crate was originally built on top of copypasta. However, copypasta uses x11-clipboard, which in turn enables a couple of features in xcb and forced us to depend on xfixes on Linux.

Because of this, and given that we do not need write access for now, I have partially forked copypasta and x11-clipboard to remove this dependency and be able to control bloating in the long run. We may find a chance to contribute back once we figure out our needs.

@hecrj hecrj added the feature New feature or request label Dec 19, 2019
@hecrj hecrj added this to the 0.1.0 milestone Dec 19, 2019
@hecrj hecrj self-assigned this Dec 19, 2019
@hecrj hecrj merged commit 773a236 into master Dec 19, 2019
@hecrj hecrj deleted the feature/read-clipboard branch December 19, 2019 16:43
@hecrj hecrj mentioned this pull request Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant