Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions panels/dock/package/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ Window {
return
if (Panel.hideState === Dock.Hide) {
hideTimer.restart()
Panel.requestClosePopup()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 High · Unrelated windows close on hide

When the dock transitions to Dock.Hide before its popup window has been created, onRequestClosePopup passes a null popupWindow to DS.closeChildrenWindows; Utility::allChildrenWindows treats every top-level window as a child of null, so the hide transition closes unrelated application windows.

Guard the closeChildrenWindows call against a null popup window.

Prompt for AI agents
In `panels/dock/package/main.qml` at line 1079:

**Unrelated windows close on hide**

When the dock transitions to `Dock.Hide` before its popup window has been created, `onRequestClosePopup` passes a null `popupWindow` to `DS.closeChildrenWindows`; `Utility::allChildrenWindows` treats every top-level window as a child of null, so the hide transition closes unrelated application windows.

Guard the `closeChildrenWindows` call against a null popup window.

} else if (Panel.hideState === Dock.Show) {
hideTimer.stop()

Expand Down
Loading