From 6449eda361692ce3cefa3fce5d9737266a9e6361 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Tue, 4 Mar 2025 11:07:53 +0100 Subject: [PATCH] Revert "gui: do not allow MainWindow to be resized" This reverts commit 0963856a941e85881cc82b254585fc76bf5b3aa0. turns out it's fine on Sonoma, whereas it breaks on Sequoia (the window now gets stuck below the menubar) -- maybe I'll open up a QTBUG later if I can reproduce this with a minimal example Signed-off-by: Jyrki Gadinger --- src/gui/tray/MainWindow.qml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index a30f4fc9375d3..cf13b90be918b 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -43,16 +43,7 @@ ApplicationWindow { readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth - Component.onCompleted: { - Systray.forceWindowInit(trayWindow) - if (Systray.useNormalWindow) { - return; - } - - // do not allow this window to be resized when it's frameless - this.minimumWidth = this.maximumWidth = this.width - this.minimumHeight = this.maximumHeight = this.height - } + Component.onCompleted: Systray.forceWindowInit(trayWindow) // Close tray window when focus is lost (e.g. click somewhere else on the screen) onActiveChanged: {