Mercurial > aewl
comparison view.c @ 656:c30805f6bb08
adding some prevention that master clients get smaller than bh
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Fri, 05 Jan 2007 15:16:39 +0100 |
parents | 04734db9a219 |
children | b4d1ef7e407f |
comparison
equal
deleted
inserted
replaced
655:4cf9ab28b36c | 656:c30805f6bb08 |
---|---|
190 } | 190 } |
191 } | 191 } |
192 | 192 |
193 void | 193 void |
194 incnmaster(Arg *arg) { | 194 incnmaster(Arg *arg) { |
195 if(nmaster + arg->i < 1) | 195 if(nmaster + arg->i < 1 || (wah / (nmaster + arg->i) < bh)) |
196 return; | 196 return; |
197 nmaster += arg->i; | 197 nmaster += arg->i; |
198 | |
198 arrange(); | 199 arrange(); |
199 } | 200 } |
200 | 201 |
201 Bool | 202 Bool |
202 isvisible(Client *c) { | 203 isvisible(Client *c) { |