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

Polymorphic data-sources #269

Merged
merged 3 commits into from
Jun 26, 2017
Merged

Polymorphic data-sources #269

merged 3 commits into from
Jun 26, 2017

Conversation

nyorain
Copy link
Contributor

@nyorain nyorain commented Jun 26, 2017

These changes make custom data-source implementations possible.
Required for x11/wayland clipboard sync and e.g. a cli (or non-wayland protocol) to set the compositors clipboard. See the first commit for more details.

Make wlc_data_source polymorphic. This enables other data-sources
than ones provided by a client.
This can be used to manually set the clipboard data from the
compositor (and later on for x11-wayland clipboard sync).
To demonstrate this, the basic example now starts with the string
"wlc" in the clipboard.
Also add a system signal to be triggered when the data source is
changed.
cb_data_source(void *data, const char *type, int fd)
{
((void) type);
printf("cb_data_source");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry missed that one

@ddevault ddevault merged commit 3f8198f into Cloudef:master Jun 26, 2017
@ddevault
Copy link
Collaborator

Thanks!

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.

2 participants