From ffe9ae7326f20bcf29001d3aa4c17db6e5319fc2 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 20 Nov 2014 23:03:22 +0200 Subject: [PATCH] input: don't run the key bindings on focus in When getting the focus we get the list of pressed keys, but we are not supposed to run the key binding on them. Reviewed-by: Daniel Stone --- src/input.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/input.c b/src/input.c index c7b25674e..7003d3521 100644 --- a/src/input.c +++ b/src/input.c @@ -1402,12 +1402,6 @@ notify_keyboard_focus_in(struct weston_seat *seat, struct wl_array *keys, WL_KEYBOARD_KEY_STATE_PRESSED); } - /* Run key bindings after we've updated the state. */ - wl_array_for_each(k, &keyboard->keys) { - weston_compositor_run_key_binding(compositor, seat, 0, *k, - WL_KEYBOARD_KEY_STATE_PRESSED); - } - surface = seat->saved_kbd_focus; if (surface) {