Skip to content

Commit

Permalink
Don't ignore inactive type entries
Browse files Browse the repository at this point in the history
An entry for a type will only get marked as active if a virtual modifier
can be directly mapped to it, and not if an action indirectly leads to
it (e.g. LevelThree).  We don't really need this test since entries which
can never be triggered ... won't be triggered.

The entire map->active thing should probably just go away.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
  • Loading branch information
fooishbar committed Jun 22, 2012
1 parent 6d606d1 commit acdad60
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/map.c
Expand Up @@ -253,9 +253,6 @@ xkb_key_get_level(struct xkb_state *state, xkb_keycode_t key,
active_mods &= type->mods.mask;

darray_foreach(entry, type->map) {
if (!entry->active)
continue;

if (entry->mods.mask == active_mods)
return entry->level;
}
Expand Down

0 comments on commit acdad60

Please sign in to comment.