diff --git a/src/windows/menu-main-window.cpp b/src/windows/menu-main-window.cpp index 6eff5c8..27c0286 100644 --- a/src/windows/menu-main-window.cpp +++ b/src/windows/menu-main-window.cpp @@ -483,14 +483,7 @@ void MenuWindow::activeMenuWindow(bool active) } if (active) { - QScreen* currrentScreen = nullptr; - for (const auto& screen : QGuiApplication::screens()) { - if (screen->geometry().contains(QCursor::pos())) { - currrentScreen = screen; - break; - } - } - this->setScreen(currrentScreen ? currrentScreen : QGuiApplication::primaryScreen()); + this->setScreen(UkuiQuick::WindowProxy::currentScreen()); updateGeometry(); }