summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 04ae223..ec37588 100644
--- a/dwm.c
+++ b/dwm.c
@@ -224,13 +224,11 @@ static Client *stack = NULL;
224static Cursor cursor[CurLast]; 224static Cursor cursor[CurLast];
225static Display *dpy; 225static Display *dpy;
226static DC dc = {0}; 226static DC dc = {0};
227static Layout *lt = NULL;
227static Window root, barwin; 228static Window root, barwin;
228
229/* configuration, allows nested code to access above variables */ 229/* configuration, allows nested code to access above variables */
230#include "config.h" 230#include "config.h"
231 231
232static Layout *lt = layouts;
233
234/* compile-time check if all tags fit into an uint bit array. */ 232/* compile-time check if all tags fit into an uint bit array. */
235struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; }; 233struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
236 234
@@ -1325,6 +1323,7 @@ setup(void) {
1325 sw = DisplayWidth(dpy, screen); 1323 sw = DisplayWidth(dpy, screen);
1326 sh = DisplayHeight(dpy, screen); 1324 sh = DisplayHeight(dpy, screen);
1327 bh = dc.font.height + 2; 1325 bh = dc.font.height + 2;
1326 lt = layouts;
1328 updategeom(); 1327 updategeom();
1329 1328
1330 /* init atoms */ 1329 /* init atoms */