From 984727ad93cae2c4fd21b04d9c8250eef17f28bc Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Wed, 17 Oct 2018 16:00:58 +0300 Subject: [PATCH] [effects] Add plasmashell to the blacklist of Glide and Scale effect on Wayland Summary: Do the same what we do on X11. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16271 --- effects/glide/glide.cpp | 3 ++- effects/scale/scale.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/effects/glide/glide.cpp b/effects/glide/glide.cpp index 7a63ee01f4..866d4b9e15 100644 --- a/effects/glide/glide.cpp +++ b/effects/glide/glide.cpp @@ -301,7 +301,8 @@ bool GlideEffect::isGlideWindow(EffectWindow *w) const // So, the only way to decide whether a window should be animated is // to use a heuristic: if a window has decoration, then it's most // likely a dialog or a settings window so we have to animate it. - if (w->windowClass() == QLatin1String("plasmashell plasmashell")) { + if (w->windowClass() == QLatin1String("plasmashell plasmashell") + || w->windowClass() == QLatin1String("plasmashell org.kde.plasmashell")) { return w->hasDecoration(); } diff --git a/effects/scale/scale.cpp b/effects/scale/scale.cpp index 6584de0fe4..530f8de364 100644 --- a/effects/scale/scale.cpp +++ b/effects/scale/scale.cpp @@ -262,7 +262,8 @@ bool ScaleEffect::isScaleWindow(EffectWindow *w) const // So, the only way to decide whether a window should be animated is // to use a heuristic: if a window has decoration, then it's most // likely a dialog or a settings window so we have to animate it. - if (w->windowClass() == QLatin1String("plasmashell plasmashell")) { + if (w->windowClass() == QLatin1String("plasmashell plasmashell") + || w->windowClass() == QLatin1String("plasmashell org.kde.plasmashell")) { return w->hasDecoration(); }