修复应用关闭后从托盘处点击出来后hover状态异常的问题
This commit is contained in:
parent
990351c5f9
commit
99d709d111
|
@ -0,0 +1,24 @@
|
|||
From: =?utf-8?b?6Z+p5ZOB6b6Z?= <hanpinlong@kylinos.cn>
|
||||
Date: Mon, 15 Jan 2024 14:36:15 +0800
|
||||
Subject: =?utf-8?b?5L+u5aSN5bqU55So5YWz6Zet5ZCO5LuO5omY55uY5aSE54K55Ye75Ye6?=
|
||||
=?utf-8?b?5p2l5ZCOaG92ZXLnirbmgIHlvILluLjnmoTpl67popg=?=
|
||||
|
||||
---
|
||||
src/widgets/kernel/qwidget.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
|
||||
index e945200..e7f03bb 100644
|
||||
--- a/src/widgets/kernel/qwidget.cpp
|
||||
+++ b/src/widgets/kernel/qwidget.cpp
|
||||
@@ -8959,7 +8959,10 @@ bool QWidget::event(QEvent *event)
|
||||
for (int i = 0; i < childList.size(); ++i) {
|
||||
QWidget *w = qobject_cast<QWidget *>(childList.at(i));
|
||||
if (w && w->isVisible() && !w->isWindow())
|
||||
+ {
|
||||
QCoreApplication::sendEvent(w, event);
|
||||
+ QCoreApplication::sendEvent(w, new QEvent(QEvent::Leave));
|
||||
+ }
|
||||
}
|
||||
break; }
|
||||
|
|
@ -34,3 +34,4 @@ revert_startBlocking_removal.diff
|
|||
0034-update-debian-changelog-to-5.15.10-dfsg-3ok1.1.patch
|
||||
0035-update-debian-changelog-to-5.15.10-dfsg-3ok1.2.patch
|
||||
0036-21-bugfix-I6YMV4.patch
|
||||
0037-hover.patch
|
||||
|
|
Loading…
Reference in New Issue