From 1a764e5794d1bb25cf7aaebb5dcb7305ec806c04 Mon Sep 17 00:00:00 2001 From: xionglinlin Date: Wed, 31 Jul 2024 15:12:13 +0800 Subject: [PATCH] fix: display issues with fullscreen frame Remove the flags from the fullscreen frame as it affects the layershell set windowType Issue: https://github.com/linuxdeepin/developer-center/issues/9996 Issue: https://github.com/linuxdeepin/developer-center/issues/9998 Issue: https://github.com/linuxdeepin/developer-center/issues/9992 --- qml/Main.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qml/Main.qml b/qml/Main.qml index 1c195b6f..4aab0c13 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -293,9 +293,10 @@ QtObject { DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand // visibility: Window.FullScreen - flags: { - if (DebugHelper.useRegularWindow) return Qt.Window - return (Qt.FramelessWindowHint | Qt.Tool) + Component.onCompleted: { + if (DebugHelper.useRegularWindow) { + flags = Qt.Window + } } DWindow.enabled: !DebugHelper.useRegularWindow