Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
regarding to http://plan9.bell-labs.com/sources/contrib/rsc/man.ps the BUGS section...
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
6a178f8
..
e11abfd
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-178,6
+178,8
@@
void
resize(Client *c, Bool sizehints) {
XWindowChanges wc;
+ if(c->w <= 0 || c->h <= 0)
+ return;
if(sizehints) {
if(c->incw)
c->w -= (c->w - c->basew) % c->incw;