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 /view.c | |
parent | 64cfebc5e7d005dfff93a2468df860522fad085a (diff) | |
download | dwm-e256afe31ef6a70eceb632ddfe717bfe6d8d9169.tar.gz |
made for/if/else constructs more consistent, some code polishing
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/view.c b/view.c index ded304e..8164446 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; } |