Skip to content

Conversation

@MaxVerevkin
Copy link
Contributor

This mainly addresses this comment:

// This looks strange, but it is working. It seems offer.receive is a request but nont a
// blocking call, which needs an extra loop to finish. Maybe a callback needs to be set
// to wait until it is processed, but I have no idea how to do that.
// conn.set_callback_for() doesn't work for the offer here.
calling a request function simply puts a request into the queue and does not perform any IO. This change moves the actual IO out of event callback into the paste function.

Also switch to using std::io::copy instead of a manual copy impl.

Copy link
Owner

@beeender beeender left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the nice refactor! And thanks for the wayrs!

Don't worry about the comment, I will fix it later.

@beeender beeender merged commit de54253 into beeender:main May 20, 2025
2 checks passed
@MaxVerevkin MaxVerevkin deleted the update-wayland branch May 20, 2025 13:44
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