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 <ran234@gmail.com>
master
Ran Benita 2012-08-27 11:25:23 +03:00
parent 9ba5ac0ec0
commit d1b476a387
1 changed files with 4 additions and 4 deletions

View File

@ -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);