some cleanup
authorAnselm R Garbe <garbeam@gmail.com>
Thu, 13 Mar 2008 12:45:30 +0000
changeset 1141 fa19c918d250
parent 1140 a3a1d5c8a9ec
child 1142 db3b21ba52e8
some cleanup
config.anselm.h
dwm.c
--- a/config.anselm.h	Thu Mar 13 10:25:50 2008 +0000
+++ b/config.anselm.h	Thu Mar 13 12:45:30 2008 +0000
@@ -71,14 +71,13 @@
 	moy = my;
 	mow = mw;
 	moh = mh;
-
-	updatebarpos();
 }
 
 void
 anselmgeoms(const char *arg) {
 	setgeoms = setanselmgeoms;
 	setgeoms();
+	updatebarpos();
 	setlayout("[]|");
 }
 
@@ -86,6 +85,7 @@
 defgeoms(const char *arg) {
 	setgeoms = setdefaultgeoms;
 	setgeoms();
+	updatebarpos();
 	setlayout("[]=");
 }
 
--- a/dwm.c	Thu Mar 13 10:25:50 2008 +0000
+++ b/dwm.c	Thu Mar 13 12:45:30 2008 +0000
@@ -408,6 +408,7 @@
 
 	if(ev->window == root && (ev->width != sw || ev->height != sh)) {
 		setgeoms();
+		updatebarpos();
 		arrange();
 	}
 }
@@ -1415,8 +1416,6 @@
 	moy = wy;
 	mow = ww;
 	moh = wh;
-
-	updatebarpos();
 }
 
 void