From 4474f4098a6f64e2ccab38f39469053b91474854 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 27 Jan 2023 16:46:45 +0000 Subject: [PATCH] Xwayland: Disable input spy on xwayland teardown Otherwise we have a potential crash when we send keys to the non-existent xwayland wayland connection --- src/xwayland/xwayland.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); }