diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp index 95a8c9ddc4..de41c72a88 100644 --- a/src/xdgshellwindow.cpp +++ b/src/xdgshellwindow.cpp @@ -438,7 +438,7 @@ void XdgSurfaceWindow::installPlasmaShellSurface(PlasmaShellSurfaceInterface *sh auto updatePosition = [this, shellSurface] { move(shellSurface->position()); }; - auto moveUnderCursor = [this, shellSurface] { + auto moveUnderCursor = [this] { // Wait for the first commit auto connection = new QMetaObject::Connection; *connection = connect(this, &Window::windowShown, [this, connection] () {