diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp index feb225a..18f538b 100755 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -770,7 +770,6 @@ void MainWindow::minAnimationFinished() m_viewWidget->setFocus(); // m_collectPushButton->clicked(true); on_collectPushButton_clicked(); - QTimer::singleShot(200, [ = ]() { m_animationPage->hide(); }); @@ -791,6 +790,7 @@ void MainWindow::maxAnimationFinished() setMaxWindowPos(); m_fullWindow->activateWindow(); + QTimer::singleShot(200, [ = ]() { m_animationPage->hide(); }); @@ -1370,7 +1370,7 @@ void MainWindow::setMinWindowPos() void MainWindow::setMaxWindowPos() { if (g_platform.startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) { - kdk::WindowManager::setGeometry(m_fullWindow->windowHandle(), QRect(0, 0, Style::m_availableScreenWidth, Style::m_availableScreenHeight)); + kdk::WindowManager::setGeometry(m_fullWindow->windowHandle(), QRect(Style::m_primaryScreenX, Style::m_primaryScreenY, Style::m_availableScreenWidth, Style::m_availableScreenHeight)); } }