1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00
Rofi: A window switcher, application launcher and dmenu replacement
Find a file
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
config Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
data Re-indent. 2014-06-04 21:29:23 +02:00
doc Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
Examples Add file browser example. 2015-01-28 07:49:52 +01:00
include Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
source Fix bugs relating to hotkeys with modifiers 2015-02-16 03:20:28 +02:00
test Fix travis test. 2015-02-15 21:34:13 +01:00
.gitignore Add small script test. 2014-08-31 10:37:12 +02:00
.travis.yml Remove i3 build in travis... it is to old. 2015-02-02 15:08:44 +01:00
AUTHORS Update Changelog and Authors file. 2015-02-10 08:00:18 +01:00
Changelog Fix #128: Better handling of keybindings and remove deprecated launching. 2015-02-15 21:15:16 +01:00
configure.ac Put i3 specific interaction code in separate file. 2015-02-02 14:49:19 +01:00
COPYING Update copyright 2015-02-12 23:00:47 +01:00
INSTALL.md Update build instructions. 2015-01-28 12:36:23 +01:00
Makefile.am Comments, compile order and Display argument. 2015-02-13 08:26:23 +01:00
README.md Rofi 1 year old! 2015-01-20 23:34:53 +01:00

Build Status Coverage Status Coverity Status

Rofi 1 Year old. cheers

Rofi

Please check the website for the latest README.

Author

 yhooooooooooooooooooooooooooo++++++++++++++++++++++++/////////d
 h:                        `s`          `-`                    m
 h:                       `y.         +so/od`                  N
 d-                      `h`    `     `    :o                  M
 m.                 ./:.+mm/+sydhsyyyddshd:`m                  M
 N.            `oy+ohNs/mh/-````    .:..yMd.`                 `M
 N`         -hsdy/`  ` .m`              `+m`                  `N
 M`       `oyoo-       h:   `---.      +h/sos`                .N
 M       :hooyo+++.   :s `/ss///so`   yo` :.:h-     `:/o      .N
`M      /d-//::/+-    `  y+`    .-h`  d/:s:  `o/    `  /s     -N
.N      od++////++      oy    :s+ od`:N+:`     y:   o/  s     -N
.N      ds//////++/     d.  :s/`  `NmsN/       .m`  // `d     -N
-N     -m/::/+++/-`     y `+/`     m/ +d.    -  d- :d.-y+     :m
-m     :h//yhmdy---    -h  `      `M. :Mmhh`o:  h:`m.`o`      :m
:m      .dhoyddohys+ooosd`     .++.N  -:..No-   h: :+.`       :m
:d      `h/h+/:o++.```  /y`   /+- +s      hy--:ys`  ++        :m
/d      .y`--:. `        oh/`..  /m.    `.hd/oN-    `         :m
/d       /hohmhy/         `/s++oso.  ./os+:. -N/:`:hs         :d
+d    .:+/sNyhdNN/          `....    .-`  .ossyohsso.         /d
+h`:osy/--+m+ymMMN+                       :hyodNd-            /d
+Ndyossso/yo///NMMMh:`                       -hmd:            /d
oN-.:h`d` d/:+myMNMMMms:.``       ``..--:/++ymm+-`            /h
oN//yyom+ym:-/yyshmMMMMMdyso+ossyhdydh+++///o/+/+h.           /h
om``d..: +/ .ddNoN:mNmmd:  ````...ymNms/+hod/ `y./h           /h
sm -y`+--yo//dmd-y/:Nhhyyo-`    `+dyNm:d:o//h++yy.o+          /h
sN/hs+y-/y` :+my`om:os-syssso+/+yo+d/d:ddyd/y-  h`.m`         /h
ym d `o /+-omyomo/d-.h- .+s+///+:+h: odsosms./.:yo/y+         +h
ym+h-ys+hs++NN o+:sh--d`   .:/+++-   `m+doNM/so-`s`-m         +y
yohs-d`.s  ohmshMo.do/oo              +mMh+M `y-/ms/d/        +y
h:yo.h`+o`-dyhsoy/hNm+oN:`            `mMd:M//h/..s /d        +y
h:h-y+-N:://hohysymhoymsyho:.          /MMmM  .o `m:-M        os
h:+:d::N+/::/yo+y+-/ho.` :symhys+:.....-MMNM+:/doohs.d`       os
h/`-y./h/++`Nddy./hs.-ys` `:+dNmNNmmNmNMNysyN:-so /y`s.       ss
d/.yo/:oo:-oMMd+dd-`sh. `.:+soo+::+oN`-mho/yN+./d+om-+:       so
d/hm`://s-hdNNMMMysdm``/yho/:/ss/:.`y:-sh.shmM+:N- m.:/       ho
d/mm/ `-symo:s/mms -sydyo+/:. :s`-/+od:-o+ /MN/:y++ds+o       m+
m:h-h/o/:-os:+y.y..h/m/. -/.:+om/.   h  `ms/M/o..s`/s-y+oossyyM+
mydh/y. :o: :ms:s -s /s:/oms-  ++  ``ss++omhm.N+oh::+h.       m/
mMhy`-ds/  :o` d//sh.`N:` -s   .h+o+/+d `ss-o`m/s+`os`````    m/
NMMdy:``//y+  :o  -h` h:   d:/+/m-    doms/oo+/.`/d/`.syy/    N:
NMMMMd/ /o:/++m`   d` oh/+/sd`  o/ `-+NMdhddmdhyhys/ms`       M:
NMMNmMMms.:``h/-.` h:o+h.   h`.-oNodNhmMMMMMNmd:.             M-
MysdMMMMMNysssoo+/:o/--y:/ohhsoosdooydNd:.`                  `M.
M:  `/++oossyyyhhdddmmmmmmdddddhyyho--/.                     `M`
ddyyyyhhhhhhhhyyyyyyhhhhhhhhyyyyyyyhhhhhhhyyyyyyyhhhhhhhyyyyyyd