From 6ec13c41a54efcf8947158b30f6db2e3d00211a5 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 20 Oct 2020 02:11:33 +0200 Subject: [PATCH] xwl: Remove unnecessary lambda --- xwl/clipboard.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xwl/clipboard.cpp b/xwl/clipboard.cpp index ee8306c87e..c93537b23e 100644 --- a/xwl/clipboard.cpp +++ b/xwl/clipboard.cpp @@ -70,10 +70,7 @@ void Clipboard::wlSelectionChanged(KWaylandServer::AbstractDataSource *dsi) // Wayland native client provides new selection if (!m_checkConnection) { m_checkConnection = connect(workspace(), &Workspace::clientActivated, - this, [this](AbstractClient *ac) { - Q_UNUSED(ac); - checkWlSource(); - }); + this, &Clipboard::checkWlSource); } // remove previous source so checkWlSource() can create a new one setWlSource(nullptr);