Commit 6288079d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Don't manipulate foreign windows

Differential Revision: https://phabricator.kde.org/D13062
parent 286b583c
......@@ -60,15 +60,17 @@ bool X11Integration::eventFilter(QObject *watched, QEvent *event)
if (event->type() == QEvent::PlatformSurface) {
if (QWindow *w = qobject_cast<QWindow*>(watched)) {
QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent*>(event);
if (pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) {
if (qApp->property(s_schemePropertyName).isValid()) {
installColorScheme(w);
if (!w->flags().testFlag(Qt::ForeignWindow)) {
if (pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) {
if (qApp->property(s_schemePropertyName).isValid()) {
installColorScheme(w);
}
const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData());
if (blurBehindProperty.isValid()) {
KWindowEffects::enableBlurBehind(w->winId(), blurBehindProperty.toBool());
}
installDesktopFileName(w);
}
const auto blurBehindProperty = w->property(s_blurBehindPropertyName.constData());
if (blurBehindProperty.isValid()) {
KWindowEffects::enableBlurBehind(w->winId(), blurBehindProperty.toBool());
}
installDesktopFileName(w);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment