[effects/glide] Do not animate logout screen

Summary: BUG: 391907

Reviewers: #plasma, #kwin, romangg

Reviewed By: #plasma, #kwin, romangg

Subscribers: romangg, broulik, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13263
This commit is contained in:
Vlad Zagorodniy 2018-06-01 13:17:43 +03:00
parent 6408e0ba60
commit c629d282ac

View file

@ -24,6 +24,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// KConfigSkeleton
#include "glideconfig.h"
#include <QSet>
#include <QString>
#include <QTimeLine>
// Effect is based on fade effect by Philip Falkner
@ -33,6 +35,13 @@ namespace KWin
static const int IsGlideWindow = 0x22A982D4;
static const QSet<QString> s_blacklist {
"ksmserver ksmserver",
"ksplashx ksplashx",
"ksplashsimple ksplashsimple",
"ksplashqml ksplashqml"
};
GlideEffect::GlideEffect()
: Effect()
{
@ -209,6 +218,8 @@ bool GlideEffect::isGlideWindow(EffectWindow* w)
return false;
if (!w->isVisible())
return false;
if (s_blacklist.contains(w->windowClass()))
return false;
if (w->data(IsGlideWindow).toBool())
return true;
if (w->hasDecoration())