dwm.c
changeset 1266 2902c669f75b
parent 1265 f3b595da1c6b
child 1267 10970b5a3c3b
equal deleted inserted replaced
1265:f3b595da1c6b 1266:2902c669f75b
   222 static Client *sel = NULL;
   222 static Client *sel = NULL;
   223 static Client *stack = NULL;
   223 static Client *stack = NULL;
   224 static Cursor cursor[CurLast];
   224 static Cursor cursor[CurLast];
   225 static Display *dpy;
   225 static Display *dpy;
   226 static DC dc = {0};
   226 static DC dc = {0};
       
   227 static Layout *lt = NULL;
   227 static Window root, barwin;
   228 static 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 
       
   232 static Layout *lt = layouts;
       
   233 
   231 
   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. */
   235 struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
   233 struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
   236 
   234 
   237 /* function implementations */
   235 /* function implementations */
  1323 	sx = 0;
  1321 	sx = 0;
  1324 	sy = 0;
  1322 	sy = 0;
  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 */
  1331 	wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
  1330 	wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
  1332 	wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
  1331 	wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);