diff --git a/touch_input.cpp b/touch_input.cpp index f2f44b8802..fb01a47c98 100644 --- a/touch_input.cpp +++ b/touch_input.cpp @@ -21,6 +21,7 @@ along with this program. If not, see . #include "input.h" #include "toplevel.h" #include "wayland_server.h" +#include "workspace.h" // KWayland #include // screenlocker @@ -49,6 +50,8 @@ void TouchInputRedirection::init() update(); } ); + connect(workspace(), &QObject::destroyed, this, [this] { m_inited = false; }); + connect(waylandServer(), &QObject::destroyed, this, [this] { m_inited = false; }); } void TouchInputRedirection::update(const QPointF &pos)