Blacklist Spectacle for all window open/close effects

Spectacle needs to be blacklisted in order to stay out of its own
screenshots.

BUG: 467890
BUG: 463105
CCBUG: 465784
This commit is contained in:
Noah Davis 2023-04-11 12:41:23 -04:00
parent d4d5e3b7a8
commit 616783d892
3 changed files with 13 additions and 2 deletions

View file

@ -15,7 +15,11 @@ const blacklist = [
"ksmserver-logout-greeter ksmserver-logout-greeter",
// The splash screen has to be animated only by the login effect.
"ksplashqml ksplashqml"
"ksplashqml ksplashqml",
// Spectacle needs to be blacklisted in order to stay out of its own screenshots.
"spectacle spectacle", // x11
"spectacle org.kde.spectacle", // wayland
];
class FadeEffect {

View file

@ -33,6 +33,9 @@ static const QSet<QString> s_blacklist{
QStringLiteral("ksmserver ksmserver"),
QStringLiteral("ksmserver-logout-greeter ksmserver-logout-greeter"),
QStringLiteral("ksplashqml ksplashqml"),
// Spectacle needs to be blacklisted in order to stay out of its own screenshots.
QStringLiteral("spectacle spectacle"), // x11
QStringLiteral("spectacle org.kde.spectacle"), // wayland
};
static QMatrix4x4 createPerspectiveMatrix(const QRectF &rect, const qreal scale, const QMatrix4x4 &renderTargetTransformation)

View file

@ -15,7 +15,11 @@ const blacklist = [
"ksmserver-logout-greeter ksmserver-logout-greeter",
// KDE Plasma splash screen has to be animated only by the login effect.
"ksplashqml ksplashqml"
"ksplashqml ksplashqml",
// Spectacle needs to be blacklisted in order to stay out of its own screenshots.
"spectacle spectacle", // x11
"spectacle org.kde.spectacle", // wayland
];
class ScaleEffect {