Revert "input: don't send to clients key events eaten by bindings"
This reverts commit 5c11fc6fb7d9b1bccd50fc982c0798c9e09a2a04.
According to two input specialists, this was the wrong way:
http://lists.freedesktop.org/archives/wayland-devel/2014-November/018287.html
Cc: Peter Hutterer <peter.hutterer@who-t.net>
Cc: Daniel Stone <daniel@fooishbar.org>
Cc: Giulio Camuffo <giuliocamuffo@gmail.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/src/bindings.c b/src/bindings.c
index 369c81a..5e24725 100644
--- a/src/bindings.c
+++ b/src/bindings.c
@@ -255,17 +255,16 @@
weston_keyboard_start_grab(seat->keyboard, &grab->grab);
}
-WL_EXPORT int
+WL_EXPORT void
weston_compositor_run_key_binding(struct weston_compositor *compositor,
struct weston_seat *seat,
uint32_t time, uint32_t key,
enum wl_keyboard_key_state state)
{
struct weston_binding *b, *tmp;
- int eaten = 0;
if (state == WL_KEYBOARD_KEY_STATE_RELEASED)
- return eaten;
+ return;
/* Invalidate all active modifier bindings. */
wl_list_for_each(b, &compositor->modifier_binding_list, link)
@@ -282,10 +281,8 @@
if (seat->keyboard->grab ==
&seat->keyboard->default_grab)
install_binding_grab(seat, time, key);
- ++eaten;
}
}
- return eaten;
}
WL_EXPORT void