Reset TouchInputRedirection::m_inited when Workspace or WaylandServer get destroyed

We don't want to continue processing events once KWin is shutting down.
This commit is contained in:
Martin Gräßlin 2016-02-15 11:43:36 +01:00
parent 59dc3816b4
commit 71a8879e95

View file

@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "input.h" #include "input.h"
#include "toplevel.h" #include "toplevel.h"
#include "wayland_server.h" #include "wayland_server.h"
#include "workspace.h"
// KWayland // KWayland
#include <KWayland/Server/seat_interface.h> #include <KWayland/Server/seat_interface.h>
// screenlocker // screenlocker
@ -49,6 +50,8 @@ void TouchInputRedirection::init()
update(); 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) void TouchInputRedirection::update(const QPointF &pos)