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:
parent
59dc3816b4
commit
71a8879e95
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue