refactor: The Clipboard operations in the Wayland #119
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
其中,用两种不同的服务流来分别管理拷贝和粘贴,拷贝流在
每一次用户操作 Ctrl + c 时都会重新创建,流程执行完毕后自动
退出回收;粘贴流由于执行指令类似,因此将其放在同一个流中进行
后台监听,当用户使用 Ctrl + v 时,不断的向流中放置消息,使
流开始正常工作。
服务流使用责任链模式实现,每一个服务存在不同的指令,每个
指令在子线程中执行不同的任务,并将结果发送给下一个服务中的指
令,直到服务结束。多个服务串行,形成最终的服务流。
Log:
Influence: Wayland clipboard