Skip to content

Commit

Permalink
Update src/state.c
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hutterer <[email protected]>
  • Loading branch information
wismill and whot authored Nov 4, 2024
1 parent e278b15 commit 172830b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,7 @@ xkb_state_mod_index_is_active(struct xkb_state *state,

xkb_mod_mask_t mapping = get_mod_mapping(state->keymap, idx);
if (!mapping)
/* Modifier not mapped */
return 0;
return 0; /* Modifier not mapped */
/* WARNING: this may overmatch for virtual modifiers */
return !!((xkb_state_serialize_mods(state, type) & mapping) == mapping);
}
Expand Down

0 comments on commit 172830b

Please sign in to comment.