xwl: Remove unnecessary lambda

This commit is contained in:
Aleix Pol 2020-10-20 02:11:33 +02:00
parent d1a0c1491a
commit 6ec13c41a5

View file

@ -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);