1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00
rofi/source
Georgios Bitzes 07df49a5af Fix bugs relating to hotkeys with modifiers
This commit makes the following changes:
1) Fix a bad check introduced in dee0bfb, which checks the modstate of the
event with the keysym of the switcher, not its modmask:

        modstate & ( switchers[i].keysym )

I think it was broken before as well, a binary AND between the two masks
will not tell much about whether they are equal. Instead, the masks are
now checked for equality after removing LockMask and NumlockMask.

2) Stop binding to AnyModifier when none is used. This conflicts with the case
in which we want to bind different modes to the same key, but different
modifiers.

for example, rofi -key-run F2 -key-ssh alt+F2 -key-window shift+F2

Binding F2 with AnyModifier would prevent alt+F2 and shift+F2 from being used.

3) Remove UngrabKey from x11_grab_key to make the above example possible.
4) Refactor search for any of the global keybindings into function locate_switcher.
2015-02-16 03:20:28 +02:00
..
dialogs Update indenting. 2015-02-12 22:34:33 +01:00
helper.c Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
history.c Update copyright license. 2015-02-12 22:34:06 +01:00
i3-support.c Fixing i3 crash. 2015-02-12 22:42:29 +01:00
rofi.c Fix bugs relating to hotkeys with modifiers 2015-02-16 03:20:28 +02:00
textbox.c Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
x11-helper.c Fix bugs relating to hotkeys with modifiers 2015-02-16 03:20:28 +02:00
xrmoptions.c Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00