diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 83707ab2c6..9bf61e7e80 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -639,7 +639,7 @@ void WaylandServer::initScreenLocker() ScreenLocker::KSldApp::self()->setGreeterEnvironment(kwinApp()->processStartupEnvironment()); - connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::aboutToLock, this, [this, screenLockerApp]() { + connect(ScreenLocker::KSldApp::self(), &ScreenLocker::KSldApp::aboutToLock, this, [this]() { new LockScreenPresentationWatcher(this); });