[PATCH] Kmscon wlterm: Fix stuck key repeat bug
Martin Minarik
minarik11 at student.fiit.stuba.sk
Sat Jan 26 03:09:05 PST 2013
1. Depress Shift
2. Depress K
3. Release Shift
4. Release K
Observed: key stuck repeat
Expected: key not stuck repeating
---
src/wlt_toolkit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/wlt_toolkit.c b/src/wlt_toolkit.c
index b1679fb..104def2 100644
--- a/src/wlt_toolkit.c
+++ b/src/wlt_toolkit.c
@@ -681,8 +681,7 @@ static void keyboard_key(void *data, struct wl_keyboard *keyboard,
}
}
- if (state == WL_KEYBOARD_KEY_STATE_RELEASED &&
- sym == disp->repeat_sym) {
+ if (state == WL_KEYBOARD_KEY_STATE_RELEASED) {
ev_timer_update(disp->repeat_timer, NULL);
} else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
disp->repeat_sym = sym;
--
1.7.10.4
More information about the wayland-devel
mailing list