diff --git a/src/xwayland/xwayland.cpp b/src/xwayland/xwayland.cpp index 4f22311395..7b987ffeba 100644 --- a/src/xwayland/xwayland.cpp +++ b/src/xwayland/xwayland.cpp @@ -282,6 +282,9 @@ void Xwayland::handleXwaylandFinished() m_dataBridge.reset(); m_selectionOwner.reset(); + m_inputSpy.reset(); + disconnect(options, &Options::xwaylandEavesdropsChanged, this, &Xwayland::refreshEavesdropping); + destroyX11Connection(); }