Xwayland: Disable input spy on xwayland teardown

Otherwise we have a potential crash when we send keys to the
non-existent xwayland wayland connection
This commit is contained in:
David Edmundson 2023-01-27 16:46:45 +00:00
parent 3de1498252
commit 4474f4098a

View file

@ -282,6 +282,9 @@ void Xwayland::handleXwaylandFinished()
m_dataBridge.reset(); m_dataBridge.reset();
m_selectionOwner.reset(); m_selectionOwner.reset();
m_inputSpy.reset();
disconnect(options, &Options::xwaylandEavesdropsChanged, this, &Xwayland::refreshEavesdropping);
destroyX11Connection(); destroyX11Connection();
} }