[AI Development Lab] 【Xwayland】让Xwayland应用走X11协议能正常进行截屏/录屏
Tofloor
poster avatar
mozixun
Moderator
2026-06-14 22:32
Author

效果如下 (非LD_PRELOAD劫持实现方案, QQ于Xwayland中运行)

58b5b8471e8d966035726ffba6783837_720.jpg

我的实现方案是让Xwayland劫持X11协议下的截图/录屏请求, 全部转发至xdg-desktop-portal+pipewire实现

跟GPT-5.5大战一个下午+晚上, 我实现了基础版本, 源代码稍后同步至Github

Reply Favorite View the author
All Replies
avatar
mozixun
Moderator
2026-06-14 22:55
#1

还是提醒一下: 这不是X11的DDE, 是Wayland的DDE

其次, 分数缩放下截图仍然有问题, 这个不是劫持的问题, 是treeland的问题

Reply View the author
avatar
司南
deepin
2026-06-16 22:08
#2

不错

like

Reply View the author
avatar
mozixun
Moderator
2026-06-16 23:11
#3
司南

不错

like

原来论坛这里也有东方众啊)

Reply View the author
avatar
司南
deepin
2026-06-16 23:23
#4
mozixun

原来论坛这里也有东方众啊)

已经是老家伙了😂

Reply View the author
avatar
mozixun
Moderator
2026-06-16 23:25
#5
司南

已经是老家伙了😂

还有老资历😨

Reply View the author
avatar
‌量子巡游者
Moderator
2026-06-18 10:03
#6
It has been deleted!
avatar
mozixun
Moderator
2026-06-18 10:05
#7
‌量子巡游者 It has been deleted!

兄弟我这是针对Xwayland应用的补丁(

其次Wayland下规范的截图实现就是走xdg-desktop-portal

Reply View the author
avatar
‌量子巡游者
Moderator
2026-06-18 10:10
#8
mozixun

兄弟我这是针对Xwayland应用的补丁(

其次Wayland下规范的截图实现就是走xdg-desktop-portal

抱歉,我理解错了

Reply View the author