projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de845cf
)
window: Stop keyboard repeat when we lose keyboard focus
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 21 Jun 2012 02:41:59 +0000
(22:41 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 21 Jun 2012 02:41:59 +0000
(22:41 -0400)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
762af54
..
25a8036
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-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;