fix(session): force-destroy sandbox surfaces on session removal#1023
Draft
deepin-wm wants to merge 1 commit into
Draft
fix(session): force-destroy sandbox surfaces on session removal#1023deepin-wm wants to merge 1 commit into
deepin-wm wants to merge 1 commit into
Conversation
1. Add sessionForClient() that uses uid matching for sandbox clients and socket chain walking for normal clients 2. Force-destroy all surfaces belonging to removed session in removeSession() to clean up sandbox apps that ignore close 3. Fix surfaceBelongsToCurrentSession() to use sessionForClient() instead of rootSocket-based check which fails for sandbox apps Log: Fixed sandbox app windows remaining visible after logout Influence: 1. Test sandbox apps (linglong) are closed on logout and re-login 2. Verify system UI (Dock, launcher) is not affected on logout 3. Test multi-user switching with sandbox apps fix(session): 会话移除时强制销毁沙盒应用窗口 1. 新增 sessionForClient() 方法,对沙盒客户端使用 uid 匹配,对普通客户端使用 socket 父链遍历 2. 在 removeSession() 中强制销毁属于该会话的所有表面, 清理忽略关闭请求的沙盒应用 3. 修复 surfaceBelongsToCurrentSession(),使用 sessionForClient() 替代基于 rootSocket 的判断 Log: 修复注销后沙盒应用窗口残留的问题 Influence: 1. 测试沙盒应用(玲珑应用商店)注销后重新登录窗口是否关闭 2. 验证系统 UI(任务栏、启动器)注销时不受影响 3. 测试多用户切换场景下沙盒应用的隔离性 Fixes: #347759
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 |
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.
Summary
Force-destroy sandbox surfaces on session removal to fix the issue where sandbox app windows (e.g., linglong app store) remain visible after logout.
Changes
sessionForClient()that uses uid matching for sandbox clients and socket chain walking for normal clientsremoveSession()to clean up sandbox apps that ignore closesurfaceBelongsToCurrentSession()to usesessionForClient()instead of rootSocket-based check which fails for sandbox appsFixes: #347759