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, lzwind 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 主要针对 整体来看,代码结构清晰,对 Wayland 和 TreeLand 的差异化处理比较细致。但经过仔细审查,在语法逻辑、代码质量和安全性方面仍有以下改进意见: 一、 语法与逻辑1.
|
fix(pin_screenshot): adapt toolbar and window management for Treeland compositor