moved LENGTH to dwm.c, moved prevtags to dwm.c
arg@suckless.org unknown
Wed, 07 Nov 2007 09:49:53 +0100
2 files changed,
4 insertions(+),
4 deletions(-)
M
config.def.h
→
config.def.h
@@ -11,13 +11,9 @@ #define SELBORDERCOLOR "#0066ff"
#define SELBGCOLOR "#0066ff" #define SELFGCOLOR "#ffffff" -/* convenience */ -#define LENGTH(x) (sizeof x / sizeof x[0]) - /* tagging */ const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; Bool seltags[LENGTH(tags)] = {[0] = True}; -Bool prevtags[LENGTH(tags)] = {[0] = True}; Rule rules[] = { /* class:instance:title regex tags regex isfloating */ { "Firefox", "www", False },
M
dwm.c
→
dwm.c
@@ -45,6 +45,8 @@ /* macros */
#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 */@@ -228,6 +230,8 @@ Regs *regs = NULL;
/* configuration, allows nested code to access above variables */ #include "config.h" + +Bool prevtags[LENGTH(tags)] = {[0] = True}; /* function implementations */ void