Browse Source

applied the proposal by nsz

master
Anselm R Garbe 17 years ago
parent
commit
b848f4bda8
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      dwm.c

+ 5
- 3
dwm.c View File

@ -112,7 +112,7 @@ typedef struct {
const char *symbol; const char *symbol;
void (*arrange)(void); void (*arrange)(void);
Bool isfloating; Bool isfloating;
} Layout;
} Layout;
typedef struct { typedef struct {
const char *class; const char *class;
@ -241,13 +241,15 @@ Client *stack = NULL;
Cursor cursor[CurLast]; Cursor cursor[CurLast];
Display *dpy; Display *dpy;
DC dc = {0}; DC dc = {0};
Geom geoms[];
Geom *geom = geoms;
Layout layouts[];
Layout *lt = layouts;
Window root, barwin; Window root, barwin;
/* configuration, allows nested code to access above variables */ /* configuration, allows nested code to access above variables */
#include "config.h" #include "config.h"
#define TAGSZ (LENGTH(tags) * sizeof(Bool)) #define TAGSZ (LENGTH(tags) * sizeof(Bool))
Layout *lt = layouts;
Geom *geom = geoms;
/* function implementations */ /* function implementations */


Loading…
Cancel
Save