diff options
| -rw-r--r-- | config.def.h | 4 | ||||
| -rw-r--r-- | dwm.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h index 9714129..b437a0e 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -11,13 +11,9 @@ | |||
| 11 | #define SELBGCOLOR "#0066ff" | 11 | #define SELBGCOLOR "#0066ff" |
| 12 | #define SELFGCOLOR "#ffffff" | 12 | #define SELFGCOLOR "#ffffff" |
| 13 | 13 | ||
| 14 | /* convenience */ | ||
| 15 | #define LENGTH(x) (sizeof x / sizeof x[0]) | ||
| 16 | |||
| 17 | /* tagging */ | 14 | /* tagging */ |
| 18 | const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; | 15 | const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; |
| 19 | Bool seltags[LENGTH(tags)] = {[0] = True}; | 16 | Bool seltags[LENGTH(tags)] = {[0] = True}; |
| 20 | Bool prevtags[LENGTH(tags)] = {[0] = True}; | ||
| 21 | Rule rules[] = { | 17 | Rule rules[] = { |
| 22 | /* class:instance:title regex tags regex isfloating */ | 18 | /* class:instance:title regex tags regex isfloating */ |
| 23 | { "Firefox", "www", False }, | 19 | { "Firefox", "www", False }, |
| @@ -45,6 +45,8 @@ | |||
| 45 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) | 45 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) |
| 46 | #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) | 46 | #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) |
| 47 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) | 47 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) |
| 48 | #define LENGTH(x) (sizeof x / sizeof x[0]) | ||
| 49 | |||
| 48 | 50 | ||
| 49 | /* enums */ | 51 | /* enums */ |
| 50 | enum { BarTop, BarBot, BarOff }; /* bar position */ | 52 | enum { BarTop, BarBot, BarOff }; /* bar position */ |
| @@ -229,6 +231,8 @@ Regs *regs = NULL; | |||
| 229 | /* configuration, allows nested code to access above variables */ | 231 | /* configuration, allows nested code to access above variables */ |
| 230 | #include "config.h" | 232 | #include "config.h" |
| 231 | 233 | ||
| 234 | Bool prevtags[LENGTH(tags)] = {[0] = True}; | ||
| 235 | |||
| 232 | /* function implementations */ | 236 | /* function implementations */ |
| 233 | void | 237 | void |
| 234 | applyrules(Client *c) { | 238 | applyrules(Client *c) { |
