Skip to content

Commit

Permalink
Fix #485: Correctly remove consumed masks.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Nov 14, 2016
1 parent 7cc90ab commit f0bc7e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,9 @@ static void rofi_view_handle_keypress ( RofiViewState *state, xkb_stuff *xkb, xc
len = xkb_state_key_get_utf8 ( xkb->state, xkpe->detail, pad, sizeof ( pad ) );
}

unsigned int modstate = x11_canonalize_mask ( xkpe->state );
xkb_mod_mask_t consumed = xkb_state_key_get_consumed_mods ( xkb->state, xkpe->detail );

unsigned int modstate = x11_canonalize_mask ( xkpe->state& (~consumed) );

if ( key != XKB_KEY_NoSymbol ) {
KeyBindingAction action;
Expand Down

0 comments on commit f0bc7e3

Please sign in to comment.