fix(surface): keep modal window animation above parent - #1381
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR keeps modal open and close animations visibly above their target windows by centralizing animation restacking and reapplying it after stacking operations, while making modal discovery ignore unmapped or unavailable child surfaces. Sequence diagram for keeping modal animation above its targetsequenceDiagram
participant Surface as SurfaceWrapper
participant Animation as WindowAnimation
participant Parent as ParentItem
Surface->>Surface: stackBefore(item) or stackAfter(item)
Surface->>Surface: updateSubSurfaceStacking()
Surface->>Surface: restackWindowAnimationAbove()
alt animation shares the parent item
Surface->>Animation: stackAfter(this)
Animation-->>Parent: Remains above target window
end
Flow diagram for mapped modal surface discoveryflowchart TD
Start["findModal()"] --> Child["Inspect child surface"]
Child --> Removed{"Wrapper is about to be removed?"}
Removed -->|Yes| Next["Skip child"]
Removed -->|No| Mapped{"Surface exists and is mapped?"}
Mapped -->|No| Next
Mapped -->|Yes| Modal{"Child is modal?"}
Modal -->|No| Next
Modal -->|Yes| Deep["Search child findModal()"]
Deep --> Result["Return active modal surface"]
Next --> More{"More children?"}
More -->|Yes| Child
More -->|No| None["No modal surface found"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
glyvut
marked this pull request as draft
September 8, 2026 08:41
Skip unmapped children in findModal() and restack the window animation above its target after stacking operations. findModal() 跳过未映射的子窗口,并在叠放操作后把窗口动画 重新叠放到目标窗口之上。 Log: 修复模态窗口开关动画被主窗盖住的问题 PMS: BUG-296659 Influence: 模态对话框打开和关闭动画始终显示在主窗口之上,不再被遮挡。
glyvut
marked this pull request as ready for review
September 8, 2026 08:42
Groveer
approved these changes
Sep 8, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: glyvut, Groveer 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Skip unmapped children in findModal() and restack the window animation above its target after stacking operations.
findModal() 跳过未映射的子窗口,并在叠放操作后把窗口动画
重新叠放到目标窗口之上。
Log: 修复模态窗口开关动画被主窗盖住的问题
PMS: BUG-296659
Influence: 模态对话框打开和关闭动画始终显示在主窗口之上,不再被遮挡。
Summary by Sourcery
Ensure modal window animations remain visible above their parent throughout stacking and modal-surface lookup.
Bug Fixes:
Enhancements: