-
Notifications
You must be signed in to change notification settings - Fork 28
fix: not be able to undock xembed tray #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
判断写反了,导致移除失败... Log:
Reviewer's guide (collapsed on small PRs)Reviewer's GuideFixes undocking logic for xembed tray icons (especially under Wayland) and improves logging category usage in the FdoSelectionManager. Sequence diagram for updated undock logic in FdoSelectionManagersequenceDiagram
participant FdoSelectionManager
participant TrayManager
FdoSelectionManager->>TrayManager: haveIcon(winId)
TrayManager-->>FdoSelectionManager: bool hasIcon
alt icon not found
FdoSelectionManager->>FdoSelectionManager: log failed to find winId to undock
FdoSelectionManager-->>FdoSelectionManager: return
else icon found
FdoSelectionManager->>TrayManager: unregisterIcon(winId)
TrayManager-->>FdoSelectionManager: (icon unregistered)
end
Updated class diagram for FdoSelectionManager undock behaviorclassDiagram
class FdoSelectionManager {
- KSelectionOwner* m_selectionOwner
- TrayManager* m_trayManager
+ FdoSelectionManager(QObject* parent)
+ void init()
+ void undock(xcb_window_t winId)
}
class TrayManager {
+ bool haveIcon(xcb_window_t winId)
+ void unregisterIcon(xcb_window_t winId)
}
FdoSelectionManager --> TrayManager : uses
class SELECTIONMGR {
}
FdoSelectionManager ..> SELECTIONMGR : qCDebug(SELECTIONMGR)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review我来对这段代码的修改进行审查:
建议:
总体来说,这些修改提高了代码的可维护性和健壮性,是一个积极的改进。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, tsic404 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 |
判断写反了,导致移除失败。
(注:当前问题只会出现在 wayland 环境)
Summary by Sourcery
Fix undocking logic for xembed system tray icons and improve selection manager logging.
Bug Fixes:
Enhancements: