reordering functions.
This commit is contained in:
parent
22aa6291df
commit
9215a55624
3
surf.c
3
surf.c
|
@ -263,8 +263,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) {
|
||||||
focus = BROWSER;
|
focus = BROWSER;
|
||||||
for(i = 0; i < LENGTH(keys); i++) {
|
for(i = 0; i < LENGTH(keys); i++) {
|
||||||
if(focus & keys[i].focus && ev->keyval == keys[i].keyval &&
|
if(focus & keys[i].focus && ev->keyval == keys[i].keyval &&
|
||||||
(CLEANMASK(ev->state) == keys[i].mod ||
|
CLEANMASK(ev->state) == keys[i].mod
|
||||||
CLEANMASK(ev->state) & keys[i].mod)
|
|
||||||
&& keys[i].func) {
|
&& keys[i].func) {
|
||||||
keys[i].func(c, &(keys[i].arg));
|
keys[i].func(c, &(keys[i].arg));
|
||||||
processed = TRUE;
|
processed = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user