From 24a534fd9a951ee98b6775b4981e80e426285c5f Mon Sep 17 00:00:00 2001 From: svan71 <48870638+svan71@users.noreply.github.com> Date: Sun, 12 Jul 2026 02:31:58 -0400 Subject: [PATCH] fix(dock): close legacy tray tooltip on popup destruction Legacy tray tooltip content is owned by a plugin popup while the translucent tooltip host is owned by dde-shell. The plugin loader hides and destroys its popup, but ShellSurfaceItemProxy.onSurfaceDestroyed is not emitted for that teardown, so TrayItemSurfacePopup never closes the shared host and leaves an empty translucent background. Connect the tooltip to PluginPopup.aboutToDestroy so the host closes at the correct lifecycle boundary. Fixes Volume/Clipboard tooltip ghost backgrounds after pointer leave. --- panels/dock/tray/TrayItemSurfacePopup.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panels/dock/tray/TrayItemSurfacePopup.qml b/panels/dock/tray/TrayItemSurfacePopup.qml index c3cfbcdc2..c4bf38aa6 100644 --- a/panels/dock/tray/TrayItemSurfacePopup.qml +++ b/panels/dock/tray/TrayItemSurfacePopup.qml @@ -128,6 +128,13 @@ Item { } } + Connections { + target: toolTip.shellSurface + function onAboutToDestroy() { + toolTip.close() + } + } + Connections { target: DockCompositor function onPopupCreated(popupSurface) {