about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-27 12:05:47 +0200
committerarg@mig29 <unknown>2006-10-27 12:05:47 +0200
commit2b13e7466f4912e3778bf59e6aec3065443f08fe (patch)
tree2595de166d7113d6b0cf6c96139f7ae25fb38b39
parent0982e47408115de4a604d9365b1014ae6205b3a9 (diff)
downloaddwm-2b13e7466f4912e3778bf59e6aec3065443f08fe.tar.gz
applied sanders max size fix
-rw-r--r--client.c2
-rw-r--r--view.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/client.c b/client.c
index 988d3ca..d04692d 100644
--- a/client.c
+++ b/client.c
@@ -233,7 +233,7 @@ manage(Window w, XWindowAttributes *wa) {
 	settags(c, getclient(trans));
 	if(!c->isfloat)
 		c->isfloat = trans
-			|| (c->maxw && c->minw &&
+			|| (c->maxw && c->minw && c->maxh && c->minh &&
 				c->maxw == c->minw && c->maxh == c->minh);
 	resizetitle(c);
 	if(clients)
diff --git a/view.c b/view.c
index daf0711..facbb4c 100644
--- a/view.c
+++ b/view.c
@@ -44,6 +44,10 @@ reorder(void) {
 static void
 togglemax(Client *c) {
 	XEvent ev;
+		
+	if (x->maxw && x->minw && x->maxh && x->minh &&
+			x->maxw == x->minw && x->maxh == x->minh)
+		return;
 
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x; c->x = sx;