Signed-off-by: Daniel Stone <daniel@fooishbar.org>
static int
xkb_filter_group_lock_func(struct xkb_filter *filter, xkb_keycode_t keycode,
static int
xkb_filter_group_lock_func(struct xkb_filter *filter, xkb_keycode_t keycode,
+ enum xkb_key_direction direction)
{
if (keycode != filter->keycode)
return 1;
{
if (keycode != filter->keycode)
return 1;
+ if (direction == XKB_KEY_DOWN) {
filter->refcnt++;
return 0;
}
filter->refcnt++;
return 0;
}