diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index a30f4fc937..cf13b90be9 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: {