From 752f23c85e17024a8b11fc56353805d89904d3ec Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 2 Jul 2023 22:54:14 +0200 Subject: [PATCH] Input: Be more through in resetState (#10612) Drop the actual slot data storage, in addition to the active references --- frontend/device/input.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/device/input.lua b/frontend/device/input.lua index b3c0d1d7b..604939ae2 100644 --- a/frontend/device/input.lua +++ b/frontend/device/input.lua @@ -506,6 +506,15 @@ function Input:resetState() self.gesture_detector:resetClockSource() end self:clearTimeouts() + + -- Drop the slots on our end, too + self:newFrame() + self.cur_slot = self.main_finger_slot + self.ev_slots = { + [self.main_finger_slot] = { + slot = self.main_finger_slot, + }, + } end function Input:handleKeyBoardEv(ev)