mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Fix #485: Correctly remove consumed masks.
This commit is contained in:
parent
7cc90abceb
commit
f0bc7e3185
1 changed files with 3 additions and 1 deletions
|
@ -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 ) );
|
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 ) {
|
if ( key != XKB_KEY_NoSymbol ) {
|
||||||
KeyBindingAction action;
|
KeyBindingAction action;
|
||||||
|
|
Loading…
Reference in a new issue