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 | 35efafe8ac901b7764b7950d3a7c8565e53c5381 (diff) | |
download | dwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.tar.gz dwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.tar.bz2 dwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.zip |
moved LENGTH to dwm.c, moved prevtags to dwm.c
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -45,6 +45,8 @@ #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) #define MOUSEMASK (BUTTONMASK | PointerMotionMask) +#define LENGTH(x) (sizeof x / sizeof x[0]) + /* enums */ enum { BarTop, BarBot, BarOff }; /* bar position */ @@ -229,6 +231,8 @@ Regs *regs = NULL; /* configuration, allows nested code to access above variables */ #include "config.h" +Bool prevtags[LENGTH(tags)] = {[0] = True}; + /* function implementations */ void applyrules(Client *c) { |