Commit c629d282 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[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
parent 6408e0ba
......@@ -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())
......
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