fixbug#190590 窗管启动过程中右键菜单颜色会有问题

This commit is contained in:
tanjing 2023-09-08 15:59:07 +08:00 committed by xibowen
parent f95e11fa3b
commit c9f1a5f421
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}