tiled layout resizehints should be respected by default
authorAnselm R Garbe <garbeam@gmail.com>
Tue, 17 Jun 2008 11:19:17 +0100
changeset 1285 226e616bc123
parent 1284 14929bfb8738
child 1286 06eb9644e2da
tiled layout resizehints should be respected by default
config.def.h
dwm.c
--- a/config.def.h	Tue Jun 17 09:57:13 2008 +0100
+++ b/config.def.h	Tue Jun 17 11:19:17 2008 +0100
@@ -27,8 +27,8 @@
 };
 
 /* layout(s) */
-static float mfact           = 0.55;
-static Bool resizehints       = False;     /* False means respect size hints in tiled resizals */
+static float mfact      = 0.55;
+static Bool resizehints = True; /* False means respect size hints in tiled resizals */
 
 static Layout layouts[] = {
 	/* symbol     arrange function */
--- a/dwm.c	Tue Jun 17 09:57:13 2008 +0100
+++ b/dwm.c	Tue Jun 17 11:19:17 2008 +0100
@@ -1094,11 +1094,11 @@
 
 		w = MAX(w, c->minw);
 		h = MAX(h, c->minh);
-		
-		if (c->maxw)
+
+		if(c->maxw)
 			w = MIN(w, c->maxw);
 
-		if (c->maxh)
+		if(c->maxh)
 			h = MIN(h, c->maxh);
 	}
 	if(w <= 0 || h <= 0)