From 70e69e8830695533f116d69f1399bd80e1f50086 Mon Sep 17 00:00:00 2001 From: iaom Date: Wed, 20 Jul 2022 14:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8kysdk=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8wayland=E7=8E=AF=E5=A2=83=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=B7=B3=E8=BF=87=E4=BB=BB=E5=8A=A1=E6=A0=8F=E5=92=8C=E5=A4=9A?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=A7=86=E5=9B=BE=E6=98=BE=E7=A4=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index 60982f2..cfe7f16 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -435,6 +435,10 @@ void MainWindow::centerToScreen(QWidget* widget) { desk_y / 3 + desk_rect.top(), this->width(), this->height())); + //设置跳过多任务视图 + kdk::WindowManager::setSkipSwitcher(this->windowHandle(),true); + //设置跳过任务栏 + kdk::WindowManager::setSkipTaskBar(this->windowHandle(),true); // widget->move(desk_x / 2 - x / 2 + desk_rect.left(), desk_y / 3 + desk_rect.top()); } @@ -476,6 +480,10 @@ void MainWindow::initTimer() { m_isAskDialogVisible = true; kdk::UkuiStyleHelper::self()->removeHeader(m_askDialog); m_askDialog->show(); + //设置跳过多任务视图 + kdk::WindowManager::setSkipSwitcher(m_askDialog->windowHandle(),true); + //设置跳过任务栏 + kdk::WindowManager::setSkipTaskBar(m_askDialog->windowHandle(),true); m_currentSearchAsked = true; } m_askTimer->stop();