From 5e378e96a4341abbaa3fd7cc00207ba7ecfb2112 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Wed, 15 May 2024 15:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):eventFilter=E5=A4=84=E7=90=86clos?= =?UTF-8?q?e=E4=BA=8B=E4=BB=B6=E4=BC=9A=E9=98=BB=E5=A1=9E=E6=B3=A8?= =?UTF-8?q?=E9=94=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index fe26fc8..90e0d3b 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -268,7 +268,7 @@ void MainWindow::ScreenGeometryChanged(QRect rect) { void MainWindow::centerToScreen(QWidget* widget) { if(!widget) return; - KWindowSystem::setState(this->winId(),NET::SkipTaskbar | NET::SkipPager); + KWindowSystem::setState(this->winId(),NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); QRect desk_rect = qApp->screenAt(QCursor::pos())->geometry(); int desk_x = desk_rect.width(); int desk_y = desk_rect.height(); @@ -446,7 +446,7 @@ bool MainWindow::eventFilter(QObject *watched, QEvent *event) if (event->type() == QEvent::Close) { event->ignore(); tryHideMainwindow(); - return true; +// return true; } }