about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-14 09:09:18 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-14 09:09:18 +0100
commite256afe31ef6a70eceb632ddfe717bfe6d8d9169 (patch)
treec42d38a69d3787c83176169d73be22e859da0f52 /event.c
parent64cfebc5e7d005dfff93a2468df860522fad085a (diff)
downloaddwm-e256afe31ef6a70eceb632ddfe717bfe6d8d9169.tar.gz
made for/if/else constructs more consistent, some code polishing
Diffstat (limited to 'event.c')
-rw-r--r--event.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/event.c b/event.c
index 9a91d49..bf69d9e 100644
--- a/event.c
+++ b/event.c
@@ -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