From 44986a3f1d367486323c1b76332d2ae66ba6d48d Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Tue, 18 Jun 2024 15:57:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):wayland=E4=B8=8B=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=B4=A2=E5=BC=95=E5=BC=B9=E7=AA=97=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=90=9C=E7=B4=A2=E9=80=80=E5=87=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index 90e0d3b..8a6227a 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -148,8 +148,7 @@ void MainWindow::initConnections() setSearchMethodConfig(isCreateIndex, isAskAgain); }); connect(m_askDialog, &CreateIndexAskDialog::focusChanged, this, [ & ] { - if (kdk::WindowManager::currentActiveWindow() != this->winId() && - kdk::WindowManager::currentActiveWindow() != m_askDialog->winId()) { + if (kdk::WindowManager::getPid(kdk::WindowManager::currentActiveWindow()) != QApplication::applicationPid()) { this->tryHideMainwindow(); } });