mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 07:48:07 +02:00
window: Stop keyboard repeat when we lose keyboard focus
This commit is contained in:
parent
de845cfcc0
commit
d3c69c279a
1 changed files with 7 additions and 0 deletions
|
|
@ -2004,6 +2004,13 @@ static void
|
|||
input_remove_keyboard_focus(struct input *input)
|
||||
{
|
||||
struct window *window = input->keyboard_focus;
|
||||
struct itimerspec its;
|
||||
|
||||
its.it_interval.tv_sec = 0;
|
||||
its.it_interval.tv_nsec = 0;
|
||||
its.it_value.tv_sec = 0;
|
||||
its.it_value.tv_nsec = 0;
|
||||
timerfd_settime(input->repeat_timer_fd, 0, &its, NULL);
|
||||
|
||||
if (!window)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue