From d1b476a387b2515ed296181afecd74cceb87b232 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 27 Aug 2012 11:25:23 +0300 Subject: [PATCH] state: fix led_update_all group mask calculation The one above uses which_mods, this one should use which_groups. Signed-off-by: Ran Benita --- src/state.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/state.c b/src/state.c index c77365b..fdccb00 100644 --- a/src/state.c +++ b/src/state.c @@ -557,13 +557,13 @@ xkb_state_led_update_all(struct xkb_state *state) state->leds |= (1 << led); } else if (map->which_groups) { - if (map->which_mods & XkbIM_UseBase) + if (map->which_groups & XkbIM_UseBase) group_mask |= (1 << state->base_group); - if (map->which_mods & XkbIM_UseLatched) + if (map->which_groups & XkbIM_UseLatched) group_mask |= (1 << state->latched_group); - if (map->which_mods & XkbIM_UseLocked) + if (map->which_groups & XkbIM_UseLocked) group_mask |= (1 << state->locked_group); - if (map->which_mods & XkbIM_UseEffective) + if (map->which_groups & XkbIM_UseEffective) group_mask |= (1 << state->group); if ((map->groups & group_mask)) state->leds |= (1 << led);