Skip to content

Commit

Permalink
fix: fullscreen frame should be a normal window
Browse files Browse the repository at this point in the history
Adding flags to a fullscreen frame

Issue: linuxdeepin/developer-center#10224
  • Loading branch information
xionglinlin authored and deepin-bot[bot] committed Aug 8, 2024
1 parent 7b96f4c commit 88e512c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,9 @@ QtObject {
DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand

// visibility: Window.FullScreen
Component.onCompleted: {
if (DebugHelper.useRegularWindow) {
flags = Qt.Window
}
flags: {
if (DebugHelper.useRegularWindow) return Qt.Window
return (Qt.FramelessWindowHint | Qt.Tool)
}

DWindow.enabled: !DebugHelper.useRegularWindow
Expand All @@ -308,7 +307,6 @@ QtObject {
DWindow.themeType: ApplicationHelper.DarkType

onVisibleChanged: {
DS.grabKeyboard(fullscreenFrame, visible)
if (visible) {
requestActivate()
}
Expand Down

0 comments on commit 88e512c

Please sign in to comment.