diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 09:09:18 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 09:09:18 +0100 |
commit | e256afe31ef6a70eceb632ddfe717bfe6d8d9169 (patch) | |
tree | c42d38a69d3787c83176169d73be22e859da0f52 /event.c | |
parent | 64cfebc5e7d005dfff93a2468df860522fad085a (diff) | |
download | dwm-e256afe31ef6a70eceb632ddfe717bfe6d8d9169.tar.gz |
made for/if/else constructs more consistent, some code polishing
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -156,8 +156,8 @@ buttonpress(XEvent *e) { } else if(ev->button == Button2) zoom(NULL); - else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) - && !c->isfixed) + else if(ev->button == Button3 + && (arrange == dofloat || c->isfloat) && !c->isfixed) { restack(); resizemouse(c); @@ -184,7 +184,8 @@ configurerequest(XEvent *e) { c->w = ev->width; if(ev->value_mask & CWHeight) c->h = ev->height; - if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight))) + if((ev->value_mask & (CWX | CWY)) + && !(ev->value_mask & (CWWidth | CWHeight))) configure(c); resize(c, False); if(!isvisible(c)) @@ -249,14 +250,13 @@ keypress(XEvent *e) { XKeyEvent *ev = &e->xkey; keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); - for(i = 0; i < len; i++) { + for(i = 0; i < len; i++) if(keysym == key[i].keysym - && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) + && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) { if(key[i].func) key[i].func(&key[i].arg); } - } } static void |