diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -224,13 +224,11 @@ 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 | 231 | ||
| 232 | static 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. */ |
| 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 | ||
| @@ -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 */ |
