From 1e08a089d2d23a2cfb5a9589cdb73f49009b67c4 Mon Sep 17 00:00:00 2001 From: zhanghongyuan Date: Tue, 17 Mar 2026 13:49:18 +0800 Subject: [PATCH] fix(launcher): adjust window layer and flags for proper display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change window layer from Overlay to Top and add dynamic flags based on debug mode to ensure proper window behavior. 调整窗口层级从Overlay到Top,并根据调试模式动态设置窗口标志, 确保窗口行为正确。 Log: 修复启动器窗口层级和标志设置 PMS: BUG-353181 Influence: 修复后启动器窗口将以正确的层级显示,避免窗口遮挡或显示异常问题。 --- shell-launcher-applet/package/launcheritem.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shell-launcher-applet/package/launcheritem.qml b/shell-launcher-applet/package/launcheritem.qml index e89c8c17..c332d10f 100644 --- a/shell-launcher-applet/package/launcheritem.qml +++ b/shell-launcher-applet/package/launcheritem.qml @@ -200,11 +200,16 @@ AppletItem { } DLayerShellWindow.anchors: DLayerShellWindow.AnchorBottom | DLayerShellWindow.AnchorTop | DLayerShellWindow.AnchorLeft | DLayerShellWindow.AnchorRight - DLayerShellWindow.layer: DLayerShellWindow.LayerOverlay + DLayerShellWindow.layer: DLayerShellWindow.LayerTop DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand DLayerShellWindow.exclusionZone: -1 DLayerShellWindow.scope: "dde-shell/launchpad" + flags: { + if (DebugHelper.useRegularWindow) return Qt.Window + return (Qt.FramelessWindowHint | Qt.Tool) + } + DWindow.enabled: !DebugHelper.useRegularWindow DWindow.windowRadius: 0 DWindow.enableSystemResize: false