腾讯会议在 niri 26.04 下无法使用屏幕共享功能
而上游相关PR中有解决方案,主要使用如下补丁
<https://github.com/wrvsrx/niri/compare/tag_support-shm-sharing_4~19..tag_support-shm-sharing_4.patch>
但我实际使用发现并未解决腾讯会议的共享问题,后面使用了下面这个 patch 得到解决
<https://github.com/rucnyz/niri/commit/f3207c77095114f9f2202ca7db8333d4c1a958d1.patch>
遂把该补丁应用于 niri 中,打包为一个支持 shm-sharing 的 niri 发布到 aur,方便大家使用,见 niri-shm-sharing
解决屏幕共享问题后,我发现仍然存在一个问题:共享屏幕没有绘制鼠标指针,原因在于腾讯会议本身请求的是一个 hidden cursor,而 niri 又刚好是用的 cursor metadata 把绘制鼠标的工作交给软件,我通过 hook 解决了这个问题,见 wemeet-cursor-hook,欢迎大家测试!