forked from openkylin/qt5-ukui-platformtheme
fixbug#190590 窗管启动过程中右键菜单颜色会有问题
This commit is contained in:
parent
f95e11fa3b
commit
c9f1a5f421
|
@ -627,6 +627,15 @@ bool Qt5UKUIStyle::eventFilter(QObject *obj, QEvent *e)
|
|||
|
||||
}
|
||||
|
||||
if (qobject_cast<QMenu *>(obj)) {
|
||||
if (e->type() == QEvent::Show) {
|
||||
if (QMenu *w = qobject_cast<QMenu *>(obj)) {
|
||||
if (!KWindowSystem::compositingActive()) {
|
||||
w->setProperty("useSystemStyleBlur", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue