equal
deleted
inserted
replaced
110 |
110 |
111 typedef struct { |
111 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; |
119 const char *instance; |
119 const char *instance; |
120 const char *title; |
120 const char *title; |
239 Client *sel = NULL; |
239 Client *sel = NULL; |
240 Client *stack = NULL; |
240 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 |
254 void |
256 void |
255 applyrules(Client *c) { |
257 applyrules(Client *c) { |