[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
This commit is contained in:
Vlad Zagorodniy 2018-10-17 16:00:58 +03:00
parent 8f14a00e88
commit 984727ad93
2 changed files with 4 additions and 2 deletions

View file

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

View file

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