feat: add xdg-activation-v1 support to dock compositor#1617
Conversation
There was a problem hiding this comment.
Sorry @18202781743, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
TAG Bot TAG: 2.0.43 |
ac56e8d to
2ff37bb
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Implement the xdg-activation-v1 protocol for the dock compositor, enabling applications to activate their windows through the dock's taskbar integration. This allows proper window focus management when clicking dock icons. The patch adds: 1. XdgActivationManager compositor extension implementing xdg_activation_v1 global 2. XdgActivationTokenV1 implementation for token lifecycle management 3. Integration with outer compositor via ds::XdgActivation for token delegation 4. QML registration for easy inclusion in DockCompositor When a plugin client commits an activation token, the manager requests a real token from the outer compositor and forwards it back, ensuring proper multi-layer Wayland compositor activation handling. Log: Added xdg-activation-v1 protocol support for dock activation functionality Influence: 1. Test clicking dock icons focuses applications correctly 2. Verify activation tokens are properly forwarded between compositor layers 3. Test multiple rapid activation requests 4. Verify proper cleanup when clients disconnect 5. Test activation tokens with different app IDs feat: 为任务栏合成器添加 xdg-activation-v1 支持 在任务栏合成器中实现 xdg-activation-v1 协议,使应用程序能通过任务栏集成 激活其窗口。这允许在点击任务栏图标时进行正确的窗口焦点管理。 修改内容: 1. 添加 XdgActivationManager 合成器扩展,实现 xdg_activation_v1 全局对象 2. 实现 XdgActivationTokenV1 用于令牌生命周期管理 3. 通过 ds::XdgActivation 与外部合成器集成进行令牌代理 4. 在 DockCompositor 中注册 QML 组件 当插件客户端提交激活令牌时,管理器从外部合成器请求真实令牌并转发回去,确 保多层 Wayland 合成器激活机制的正确处理。 Log: 新增 xdg-activation-v1 协议支持任务栏激活功能 Influence: 1. 测试点击任务栏图标能否正确聚焦应用程序 2. 验证激活令牌在合成器层之间正确转发 3. 测试多次快速激活请求 4. 验证客户端断开连接时的清理逻辑 5. 测试不同应用 ID 的激活令牌
2ff37bb to
06879c4
Compare
deepin pr auto review代码审查报告总体评价这段代码实现了一个 XDG 激活管理器(XdgActivationManager),用于处理 Wayland 协议中的激活令牌功能。代码结构清晰,实现了基本的激活令牌管理功能。不过有一些可以改进的地方。 具体改进建议1. 代码质量
2. 性能优化
3. 代码安全
4. 其他建议
总结代码整体实现合理,但在错误处理、资源管理和线程安全方面还有改进空间。建议按照上述建议进行优化,以提高代码的健壮性和可维护性。特别是要加强错误处理和资源管理,这对于系统级组件来说非常重要。 |
Implement the xdg-activation-v1 protocol for the dock compositor,
enabling applications to activate their windows through the dock's
taskbar integration. This allows proper window focus management when
clicking dock icons.
The patch adds:
xdg_activation_v1 global
delegation
When a plugin client commits an activation token, the manager requests
a real token from the outer compositor and forwards it back, ensuring
proper multi-layer Wayland compositor activation handling.
Log: Added xdg-activation-v1 protocol support for dock activation
functionality
Influence:
layers
feat: 为任务栏合成器添加 xdg-activation-v1 支持
在任务栏合成器中实现 xdg-activation-v1 协议,使应用程序能通过任务栏集成
激活其窗口。这允许在点击任务栏图标时进行正确的窗口焦点管理。
修改内容:
当插件客户端提交激活令牌时,管理器从外部合成器请求真实令牌并转发回去,确
保多层 Wayland 合成器激活机制的正确处理。
Log: 新增 xdg-activation-v1 协议支持任务栏激活功能
Influence: