Skip to content

Commit

Permalink
chore: also hide fullscreen frame when lost focus
Browse files Browse the repository at this point in the history
全屏失去焦点时也隐藏启动器。

Issue: linuxdeepin/developer-center#7635
  • Loading branch information
BLumia authored and deepin-bot[bot] committed Apr 10, 2024
1 parent b8f8669 commit 0c7dea2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,18 @@ QtObject {
}
}

onActiveChanged: {
if (!active && !DebugHelper.avoidHideWindow && (LauncherController.currentFrame === "FullscreenFrame")) {
// When composting is disabled, switching mode from fullscreen to windowed mode will cause window
// activeChanged signal get emitted. We reused the delay timer here to avoid the window get hide
// caused by that.
// Issue: https://github.com/linuxdeepin/developer-center/issues/6818
if (!LauncherController.shouldAvoidHideOrActive()) {
LauncherController.hideWithTimer()
}
}
}

Loader {
anchors.fill: parent
focus: true
Expand Down

0 comments on commit 0c7dea2

Please sign in to comment.