forked from openkylin/ukui-menu
解决任务栏位置调整后全屏开始菜单位置错误问题
This commit is contained in:
parent
90157f6306
commit
e4f9c154aa
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue