From 04697c1c3f5f2022c29ababd0ee9545602bf3b3f Mon Sep 17 00:00:00 2001 From: reionwong Date: Thu, 11 Nov 2021 14:55:27 +0800 Subject: [PATCH] Fix notification window grab event --- cutefish | 2 +- notificationd/notificationwindow.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cutefish b/cutefish index 086fe41..6c568aa 100644 --- a/cutefish +++ b/cutefish @@ -1,2 +1,2 @@ [General] -Version=0.5.1 \ No newline at end of file +Version=0.6 \ No newline at end of file diff --git a/notificationd/notificationwindow.cpp b/notificationd/notificationwindow.cpp index a61c89a..c4e5221 100644 --- a/notificationd/notificationwindow.cpp +++ b/notificationd/notificationwindow.cpp @@ -48,6 +48,9 @@ bool NotificationWindow::eventFilter(QObject *object, QEvent *event) } else if (event->type() == QEvent::Show) { KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); HistoryModel::self()->updateTime(); + } else if (event->type() == QEvent::Hide) { + setMouseGrabEnabled(false); + setKeyboardGrabEnabled(false); } return QObject::eventFilter(object, event);