Skip to content

Commit 8e2a211

Browse files
add-uosBLumia
authored andcommitted
fix(launcher): adjust window layer and flags for proper display
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: 修复后启动器窗口将以正确的层级显示,避免窗口遮挡或显示异常问题。
1 parent 03cd04f commit 8e2a211

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

shell-launcher-applet/package/launcheritem.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,16 @@ AppletItem {
200200
}
201201

202202
DLayerShellWindow.anchors: DLayerShellWindow.AnchorBottom | DLayerShellWindow.AnchorTop | DLayerShellWindow.AnchorLeft | DLayerShellWindow.AnchorRight
203-
DLayerShellWindow.layer: DLayerShellWindow.LayerOverlay
203+
DLayerShellWindow.layer: DLayerShellWindow.LayerTop
204204
DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand
205205
DLayerShellWindow.exclusionZone: -1
206206
DLayerShellWindow.scope: "dde-shell/launchpad"
207207

208+
flags: {
209+
if (DebugHelper.useRegularWindow) return Qt.Window
210+
return (Qt.FramelessWindowHint | Qt.Tool)
211+
}
212+
208213
DWindow.enabled: !DebugHelper.useRegularWindow
209214
DWindow.windowRadius: 0
210215
DWindow.enableSystemResize: false

0 commit comments

Comments
 (0)