Wayland 中的多个鼠标指针
Multiple Mouse Cursors in Wayland

原始链接: https://blinry.org/multi-seat-wayland/

本文探讨了在 Linux 和 Wayland 上实现“多座”(multi-seat)计算的可行性。通过将多个鼠标和键盘连接到同一台电脑,可以创建一个支持多个光标的协作桌面环境。 尽管这一概念较为冷门,但作者认为,它为结对编程或运行本地多人游戏提供了一种自然的实现方式,且无需复杂的同步算法。技术调研显示,虽然 Wayland 的核心协议在多座输入方面设计完善,但实现层面在不同环节上仍存在碎片化: * **合成器(Compositors):** Weston、Sway 和 River 提供了强大的支持,允许实现按座位划分的窗口聚焦和配置。 * **工具包(Toolkits):** GTK 和 SDL 内置了多座功能,但通常需要进行微小的补丁或特定配置才能正常运行。 * **远程访问:** 使用带有 `--transient-seat` 参数的 `wayvnc`,可以让远程用户通过独立的个人光标加入。 作者发布了若干工具和补丁以改善使用体验,并为有意拓展这一利基领域的开发者指出了多种“开放项目”方向。该项目为在现代 Linux 桌面构建真正支持多指针的协作应用奠定了基础。

``` Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Wayland 中的多个鼠标光标 (blinry.org) 15 分,作者:marvinborner,1 小时前 | 隐藏 | 过往 | 收藏 | 1 条评论 帮助 Quaternions 12 分钟前 [–] 我一直觉得这是个很酷的想法。很显然,Wayland 协议开发者从一开始就考虑过这一点,否则这是不可能实现的! 回复 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 加入 YC | 联系 搜索: ```
相关文章

原文

I’ve been fascinated by the idea of attaching multiple mice to one computer, and then having multiple mouse cursors inside of one desktop environment!

I just spent three weeks investigating how well that’s currently supported on Linux & Wayland. Let me tell you what I found! The results are surprisingly cool.

Together with this blog post, I’m publishing a number of little tools and patched libraries that add or improve “multi-seat” support. But many pieces in this puzzle are still incomplete or missing. I marked some “open projects ideas” with a 📝 emoji throughout the blog post. By publishing this post, I hope to find people who are interested in exploring and expanding this space together. If that’s you, reach out!

联系我们 contact @ memedata.com