diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-06 15:52:44 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-06 15:52:44 +0100 |
| commit | b848f4bda8861115c04aecd9fd87baf928d931de (patch) | |
| tree | 136579c7ccf2591c075b48610bf60ddf419cf6ff /dwm.c | |
| parent | applied JUCE patch (diff) | |
| download | dwm-b848f4bda8861115c04aecd9fd87baf928d931de.tar.gz dwm-b848f4bda8861115c04aecd9fd87baf928d931de.zip | |
applied the proposal by nsz
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -112,7 +112,7 @@ typedef struct { | |||
| 112 | const char *symbol; | 112 | const char *symbol; |
| 113 | void (*arrange)(void); | 113 | void (*arrange)(void); |
| 114 | Bool isfloating; | 114 | Bool isfloating; |
| 115 | } Layout; | 115 | } Layout; |
| 116 | 116 | ||
| 117 | typedef struct { | 117 | typedef struct { |
| 118 | const char *class; | 118 | const char *class; |
| @@ -241,13 +241,15 @@ Client *stack = NULL; | |||
| 241 | Cursor cursor[CurLast]; | 241 | Cursor cursor[CurLast]; |
| 242 | Display *dpy; | 242 | Display *dpy; |
| 243 | DC dc = {0}; | 243 | DC dc = {0}; |
| 244 | Geom geoms[]; | ||
| 245 | Geom *geom = geoms; | ||
| 246 | Layout layouts[]; | ||
| 247 | Layout *lt = layouts; | ||
| 244 | Window root, barwin; | 248 | Window root, barwin; |
| 245 | 249 | ||
| 246 | /* configuration, allows nested code to access above variables */ | 250 | /* configuration, allows nested code to access above variables */ |
| 247 | #include "config.h" | 251 | #include "config.h" |
| 248 | #define TAGSZ (LENGTH(tags) * sizeof(Bool)) | 252 | #define TAGSZ (LENGTH(tags) * sizeof(Bool)) |
| 249 | Layout *lt = layouts; | ||
| 250 | Geom *geom = geoms; | ||
| 251 | 253 | ||
| 252 | /* function implementations */ | 254 | /* function implementations */ |
| 253 | 255 | ||
