Bug fix 5 21#844
Conversation
b00265f to
bb39392
Compare
… compositor - Add isTreelandMode flag with case-insensitive DDE_CURRENT_COMPOSITOR check - Use QSurfaceFormat alpha buffer for Treeland before QApplication creation - Move DGuiApplicationHelper palette setup after QApplication to fix Treeland crash - Make toolbar a subsurface of the main pin window via QWindow::setParent - Replace DBlurEffectWidget blur with custom QPainter rounded-rect background (DBlur is non-functional under Treeland subsurface) - Use startSystemMove() / windowHandle()->setPosition() for drag & key move - Fix geometry() vs mapFromGlobal() coordinate mismatch for toolbar hit-test 新增 isTreelandMode 标志,通过 DDE_CURRENT_COMPOSITOR 环境变量判断合成器类型。 Treeland 模式下:设置 QSurfaceFormat alpha 缓冲、调整 DGuiApplicationHelper 调色板初始化顺序避免崩溃、将工具栏设为主窗口子表面替代独立窗口、用 QPainter 自定义圆角背景替代 DBlurEffectWidget、使用 startSystemMove() 实现拖拽移动、 修复工具栏命中测试的坐标计算偏差。 Log: 修复截图钉图功能在Treeland合成器下工具栏显示异常和窗口管理问题 PMS: TASK-389563 Influence: 修复后截图钉图功能可在Treeland合成器下正常使用,工具栏正确显示并支持拖拽移动
bb39392 to
350fb46
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev 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 |
1 similar comment
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengzhongyuan365-dev 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 |
deepin pr auto review这份 Git Diff 包含了对深度截图录屏工具的诸多重要更新,主要集中在 Treeland(Wayland合成器)适配、X11 下 Dock Grab 导致事件丢失的修复、截图窗口列表获取时机的优化,以及贴图功能的 D-Bus 异步化改造。 整体来看,代码逻辑清晰,注释详尽,解决了实际场景中的复杂问题。但在语法逻辑、代码质量和安全性方面,仍有进一步优化的空间。以下是详细的审查意见: 一、 语法与逻辑
二、 代码质量
三、 代码性能
四、 代码安全
总结此次提交的核心逻辑(延迟获取窗口列表、XRecord补发事件、Treeland适配)是正确且必要的,解决了复杂的系统级交互问题。主要的改进点在于:
|
4b849c2 to
350fb46
Compare
|
/forcemerge |
|
This pr force merged! (status: blocked) |
fix(pin_screenshot): adapt toolbar and window management for Treeland compositor