fix: window corner radius setting not taking effect#1022
Conversation
1. Use -1 as sentinel value to distinguish "never set" from "explicitly set" for per-window cornerRadius in both SurfaceWrapper and PersonalizationWindowContextV1 2. Reset per-window m_radius override to -1 when DConfig windowRadius changes, so radius() falls back to the new global value 3. Fix Layer type windows returning -1.0 instead of 0 when no per-window override is set 4. Add resetCornerRadius() method with early-return guard Influence: 1. Test window corner radius change via control center 2. Verify existing windows update radius in real-time 3. Test Layer windows do not show rounded corners fix: 窗口圆角设置不生效 1. 使用 -1 作为哨兵值区分"从未设置"和"显式设置"逐窗口 圆角半径,适用于 SurfaceWrapper 和 PersonalizationWindowContextV1 2. 当 DConfig windowRadius 变更时,将逐窗口 m_radius 覆盖 值重置为 -1,使 radius() 回退到新的全局值 3. 修复 Layer 类型窗口在无逐窗口覆盖时返回 -1.0 而非 0 4. 添加 resetCornerRadius() 方法,包含提前返回守卫 Influence: 1. 测试通过控制中心修改窗口圆角 2. 验证已存在窗口实时更新圆角 3. 测试 Layer 窗口不显示圆角 PMS: BUG-2500U1-271537
There was a problem hiding this comment.
Sorry @deepin-wm, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-wm 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 |
|
TAG Bot New tag: 0.8.12 |
|
这个PR修复了Xwayland应用也没有radius圆角的问题嘛, 如果没的话是不是能关闭了( |
|
TAG Bot New tag: 0.8.13 |
Use -1 as sentinel value to distinguish "never set" from "explicitly set" for per-window cornerRadius, and reset per-window overrides when DConfig windowRadius changes.
Changes
Testing
PMS: BUG-2500U1-271537