Skip to content

Commit

Permalink
fix: window hide when screenshot
Browse files Browse the repository at this point in the history
fix window hide when screenshot
  • Loading branch information
kt286 committed Dec 13, 2023
1 parent f05aa8d commit 096d7a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ ApplicationWindow {
width: 780
height: 600
visible: LauncherController.visible
modality: Qt.WindowModal
flags: {
if (DebugHelper.useRegularWindow) {
return Qt.Window
}
if (LauncherController.currentFrame === "WindowedFrame") {
return (Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.Tool) // X11BypassWindowManagerHint
return (Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.Widget | Qt.Dialog) // X11BypassWindowManagerHint
} else {
return (Qt.FramelessWindowHint | Qt.Tool)
return (Qt.FramelessWindowHint | Qt.Widget | Qt.Dialog)
}
}
DWindow.enabled: !DebugHelper.useRegularWindow
Expand Down

0 comments on commit 096d7a3

Please sign in to comment.