Eat scroll event if a key binding function is executed because of it.
When an axis (scroll) event results in a key binding function
being executed, eat the scroll event so the underlying window
doesn't receive it.
Thanks to Scott Moreau for helping me solve this.
diff --git a/src/compositor.h b/src/compositor.h
index ef52d88..3fe5b16 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -656,7 +656,7 @@
struct weston_seat *seat, uint32_t time,
uint32_t button,
enum wl_pointer_button_state value);
-void
+int
weston_compositor_run_axis_binding(struct weston_compositor *compositor,
struct weston_seat *seat, uint32_t time,
uint32_t axis, int32_t value);