From f0cb4ee2191b097cb44370a37259b39e54f23e00 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 27 Mar 2012 16:15:06 +0100 Subject: [PATCH] Update xkb_filter_group_lock_func for xkb_key_direction Signed-off-by: Daniel Stone --- src/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state.c b/src/state.c index ff5cd09..9dda257 100644 --- a/src/state.c +++ b/src/state.c @@ -187,12 +187,12 @@ xkb_filter_group_set_new(struct xkb_state *state, xkb_keycode_t keycode, static int xkb_filter_group_lock_func(struct xkb_filter *filter, xkb_keycode_t keycode, - int down) + enum xkb_key_direction direction) { if (keycode != filter->keycode) return 1; - if (down) { + if (direction == XKB_KEY_DOWN) { filter->refcnt++; return 0; } -- 2.7.4