Commit 0a31feb3 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/logout] Animate ksmserver-logout-greeter

Summary:
On Wayland session, the logout screen has "ksmserver-logout-greeter
ksmserver-logout-greet" window class, so let's animate it too.

Test Plan:
* Started Wayland session;
* Pressed Ctrl+Alt+Del;
* (the logout screen smoothly faded in);
* Clicked the Cancel button;
* (the logout screen smoothly faded out)

* Started X11 session;
* Pressed Ctrl+Alt+Del;
* (the logout screen smoothly faded in);
* Clicked the Cancel button;
* (the logout screen smoothly faded out)

Reviewers: #kwin, #plasma, davidedmundson

Reviewed By: #kwin, #plasma, davidedmundson

Subscribers: davidedmundson, abetts, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D14848
parent 7763b586
......@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var blacklist = [
// The logout screen has to be animated only by the logout effect.
"ksmserver ksmserver",
"ksmserver-logout-greeter ksmserver-logout-greeter",
// The splash screen has to be animated only by the login effect.
"ksplashqml ksplashqml",
......
......@@ -36,6 +36,7 @@ namespace KWin
static const QSet<QString> s_blacklist {
QStringLiteral("ksmserver ksmserver"),
QStringLiteral("ksmserver-logout-greeter ksmserver-logout-greeter"),
QStringLiteral("ksplashqml ksplashqml"),
QStringLiteral("ksplashsimple ksplashsimple"),
QStringLiteral("ksplashx ksplashx")
......
......@@ -30,8 +30,10 @@ var logoutEffect = {
},
isLogoutWindow: function (window) {
"use strict";
var windowClass = window.windowClass;
if (windowClass === "ksmserver ksmserver") {
if (window.windowClass === "ksmserver ksmserver") {
return true;
}
if (window.windowClass === "ksmserver-logout-greeter ksmserver-logout-greeter") {
return true;
}
return false;
......
......@@ -33,6 +33,7 @@ namespace KWin
static const QSet<QString> s_blacklist {
// The logout screen has to be animated only by the logout effect.
QStringLiteral("ksmserver ksmserver"),
QStringLiteral("ksmserver-logout-greeter ksmserver-logout-greeter"),
// KDE Plasma splash screen has to be animated only by the login effect.
QStringLiteral("ksplashqml ksplashqml"),
......
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