diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 6b9f46ee2..1f4760b35 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -272,9 +272,8 @@ void Systray::pauseResumeSync() void Systray::positionWindow(QQuickWindow *window) const { - window->setScreen(currentScreen()); - - if (useNormalWindow()) { + if (!useNormalWindow()) { + window->setScreen(currentScreen()); const auto position = computeWindowPosition(window->width(), window->height()); window->setPosition(position); } diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 48e188db2..e818550a2 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -57,10 +57,7 @@ Window { onShowWindow: { accountMenu.close(); appsMenu.close(); - - if (!Systray.useNormalWindow) { - Systray.positionWindow(trayWindow); - } + Systray.positionWindow(trayWindow); trayWindow.show(); trayWindow.raise();