dwm.c
changeset 1266 2902c669f75b
parent 1265 f3b595da1c6b
child 1267 10970b5a3c3b
--- a/dwm.c	Wed Jun 11 14:10:18 2008 +0100
+++ b/dwm.c	Wed Jun 11 17:01:30 2008 +0100
@@ -224,13 +224,11 @@
 static Cursor cursor[CurLast];
 static Display *dpy;
 static DC dc = {0};
+static Layout *lt = NULL;
 static Window root, barwin;
-
 /* configuration, allows nested code to access above variables */
 #include "config.h"
 
-static Layout *lt = layouts;
-
 /* compile-time check if all tags fit into an uint bit array. */
 struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
 
@@ -1325,6 +1323,7 @@
 	sw = DisplayWidth(dpy, screen);
 	sh = DisplayHeight(dpy, screen);
 	bh = dc.font.height + 2;
+	lt = layouts;
 	updategeom();
 
 	/* init atoms */