From 3ba976638f1fff04e435512c85e4df30c864ecd8 Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 30 Apr 2022 16:14:57 +0200 Subject: [PATCH] js: minimize frameless window when clicking on taskbar icon Co-authored-by: rating89us <45968869+rating89us@users.noreply.github.com> --- js/Windows.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Windows.js b/js/Windows.js index 6d067e0d..7475d6b0 100644 --- a/js/Windows.js +++ b/js/Windows.js @@ -1,4 +1,5 @@ -var flagsCustomDecorations = (Qt.FramelessWindowHint | Qt.CustomizeWindowHint | Qt.WindowSystemMenuHint | Qt.Window); +var flagsCustomDecorationsBase = (Qt.FramelessWindowHint | Qt.CustomizeWindowHint | Qt.WindowSystemMenuHint | Qt.Window); +var flagsCustomDecorations = isWindows ? (flagsCustomDecorationsBase | Qt.WindowMinimizeButtonHint) : flagsCustomDecorationsBase; var flags = (Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint | Qt.WindowMaximizeButtonHint | Qt.WindowFullscreenButtonHint); /**