aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2018-05-24 12:22:28 +0200
committerKai Uwe Broulik <[email protected]>2018-05-24 12:22:28 +0200
commit6288079d936b4068fabd982dce6ff45375ac22a6 (patch)
treea72ef76af99d64b709f2825fcd8322ccee3c24b0
parent286b583c3e45453c2c93689cef434e7435737940 (diff)
Don't manipulate foreign windows
Differential Revision: https://phabricator.kde.org/D13062
-rw-r--r--src/platformtheme/x11integration.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/platformtheme/x11integration.cpp b/src/platformtheme/x11integration.cpp
index ec6d57a..236d4b7 100644
--- a/src/platformtheme/x11integration.cpp
+++ b/src/platformtheme/x11integration.cpp
@@ -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);
}
}
}