From 71a8879e95378124f137de75800deee9e8ba2168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 15 Feb 2016 11:43:36 +0100 Subject: [PATCH] Reset TouchInputRedirection::m_inited when Workspace or WaylandServer get destroyed We don't want to continue processing events once KWin is shutting down. --- touch_input.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)