diff --git a/frame/qml/PanelMenu.qml b/frame/qml/PanelMenu.qml index af021de9d..a2104214c 100644 --- a/frame/qml/PanelMenu.qml +++ b/frame/qml/PanelMenu.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later @@ -15,6 +15,8 @@ Item { property int menuX: 0 property int menuY: 0 property bool readyBinding: false + // WM_NAME, used for kwin. + property string windowTitle: "dde-shell/panelmenu" width: menu.childrenRect.width height: menu.childrenRect.height @@ -57,6 +59,7 @@ Item { menuWindow.currentItem = control Qt.callLater(function () { + menuWindow.title = windowTitle menuWindow.show() DS.grabMouse(menuWindow) }) diff --git a/frame/qml/PanelPopup.qml b/frame/qml/PanelPopup.qml index 25099b21d..8987df717 100644 --- a/frame/qml/PanelPopup.qml +++ b/frame/qml/PanelPopup.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later @@ -15,6 +15,8 @@ Item { property int popupX: 0 property int popupY: 0 property bool readyBinding: false + // WM_NAME, used for kwin. + property string windowTitle: "dde-shell/panelpopup" width: popup.childrenRect.width height: popup.childrenRect.height @@ -77,6 +79,7 @@ Item { if (!readyBinding) return + popupWindow.title = windowTitle popupWindow.show() popupWindow.requestActivate() } diff --git a/frame/qml/PanelPopupWindow.qml b/frame/qml/PanelPopupWindow.qml index b72ecb755..c4404dfa0 100644 --- a/frame/qml/PanelPopupWindow.qml +++ b/frame/qml/PanelPopupWindow.qml @@ -69,8 +69,6 @@ PopupWindow { height: 10 flags: (Qt.platform.pluginName === "xcb" ? (Qt.Tool | Qt.WindowStaysOnTopHint) : Qt.Popup) font: D.DTK.fontManager.t6 - // WM_NAME, used for kwin. - title: "dde-shell/panelpopup" D.DWindow.enabled: true D.DWindow.windowRadius: D.DTK.platformTheme.windowRadius < 0 ? 4 : D.DTK.platformTheme.windowRadius D.DWindow.enableSystemResize: false diff --git a/frame/qml/PanelToolTip.qml b/frame/qml/PanelToolTip.qml index 75481c107..f73ddc5c2 100644 --- a/frame/qml/PanelToolTip.qml +++ b/frame/qml/PanelToolTip.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later @@ -18,6 +18,8 @@ Item { property int toolTipX: 0 property int toolTipY: 0 property bool readyBinding: false + // WM_NAME, used for kwin. + property string windowTitle: "dde-shell/paneltooltip" width: toolTip.width height: toolTip.height @@ -67,6 +69,7 @@ Item { if (!readyBinding) return + toolTipWindow.title = windowTitle toolTipWindow.show() } }