Revert "gui: do not allow MainWindow to be resized"

This reverts commit 0963856a94.

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 <nilsding@nilsding.org>
This commit is contained in:
Jyrki Gadinger 2025-03-04 11:07:53 +01:00 committed by backportbot[bot]
parent f7c2f0dba8
commit 6449eda361

View File

@ -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: {