Don't ignore inactive type entries

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>
master
Daniel Stone 2012-06-22 16:03:17 +01:00
parent 6d606d1068
commit acdad6058d
1 changed files with 0 additions and 3 deletions

View File

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