diff options
| author | arg@suckless.org <unknown> | 2007-11-07 09:49:53 +0100 |
|---|---|---|
| committer | arg@suckless.org <unknown> | 2007-11-07 09:49:53 +0100 |
| commit | 198502f41dc3c436b73215f5e2a6b58b050ecfce (patch) | |
| tree | 6000b2bed57b5f560c8fa8261cd8a1f81fc72a6e /dwm.c | |
| parent | we check variable == value, and not the other way - the other way is for begi... (diff) | |
| download | dwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.tar.gz dwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.zip | |
moved LENGTH to dwm.c, moved prevtags to dwm.c
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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) { |
