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 "toplevel.h"
#include "wayland_server.h"
#include "workspace.h"
// KWayland
#include <KWayland/Server/seat_interface.h>
// 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)