From e256afe31ef6a70eceb632ddfe717bfe6d8d9169 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Wed, 14 Feb 2007 09:09:18 +0100 Subject: made for/if/else constructs more consistent, some code polishing --- view.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index ded304e6..8164446e 100644 --- a/view.c +++ b/view.c @@ -55,9 +55,8 @@ dofloat(void) { Client *c; for(c = clients; c; c = c->next) { - if(isvisible(c)) { + if(isvisible(c)) resize(c, True); - } else XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); } @@ -150,7 +149,7 @@ focusprev(Arg *arg) { void incnmaster(Arg *arg) { if((arrange == dofloat) || (nmaster + arg->i < 1) - || (wah / (nmaster + arg->i) <= 2 * BORDERPX)) + || (wah / (nmaster + arg->i) <= 2 * BORDERPX)) return; nmaster += arg->i; if(sel) @@ -175,7 +174,7 @@ resizemaster(Arg *arg) { master = MASTER; else { if(waw * (master + arg->i) / 1000 >= waw - 2 * BORDERPX - || waw * (master + arg->i) / 1000 <= 2 * BORDERPX) + || waw * (master + arg->i) / 1000 <= 2 * BORDERPX) return; master += arg->i; } -- cgit v1.2.3