diff --git a/src/effects/backgroundcontrast/contrast.cpp b/src/effects/backgroundcontrast/contrast.cpp index 2f79fb00b8..a8e29b8181 100644 --- a/src/effects/backgroundcontrast/contrast.cpp +++ b/src/effects/backgroundcontrast/contrast.cpp @@ -10,6 +10,7 @@ #include "contrastshader.h" // KConfigSkeleton +#include #include #include #include @@ -38,7 +39,7 @@ ContrastEffect::ContrastEffect() } if (effects->waylandDisplay()) { if (!s_contrastManagerRemoveTimer) { - s_contrastManagerRemoveTimer = new QTimer(qApp); + s_contrastManagerRemoveTimer = new QTimer(QCoreApplication::instance()); s_contrastManagerRemoveTimer->setSingleShot(true); s_contrastManagerRemoveTimer->callOnTimeout([]() { s_contrastManager->remove();