uterm: input: fix stopping key-repeat when going asleep
We need to stop each key-repeat when putting input-devices to sleep. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
4a4ccec363
commit
9fb08904a9
@ -132,6 +132,8 @@ static void input_sleep_dev(struct uterm_input_dev *dev)
|
||||
if (dev->rfd < 0)
|
||||
return;
|
||||
|
||||
dev->repeating = false;
|
||||
ev_timer_update(dev->repeat_timer, NULL);
|
||||
ev_eloop_rm_fd(dev->fd);
|
||||
dev->fd = NULL;
|
||||
close(dev->rfd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user