moved LENGTH to dwm.c, moved prevtags to dwm.c 198502f4
arg@suckless.org · 2007-11-07 09:49 2 file(s) · +4 −4
config.def.h +0 −4
11 11
#define SELBGCOLOR		"#0066ff"
12 12
#define SELFGCOLOR		"#ffffff"
13 13
14 -
/* convenience */
15 -
#define LENGTH(x) (sizeof x / sizeof x[0])
16 -
17 14
/* tagging */
18 15
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
19 16
Bool seltags[LENGTH(tags)] = {[0] = True};
20 -
Bool prevtags[LENGTH(tags)] = {[0] = True};
21 17
Rule rules[] = {
22 18
	/* class:instance:title regex	tags regex	isfloating */
23 19
	{ "Firefox",			"www",		False },
dwm.c +4 −0
45 45
#define BUTTONMASK		(ButtonPressMask | ButtonReleaseMask)
46 46
#define CLEANMASK(mask)		(mask & ~(numlockmask | LockMask))
47 47
#define MOUSEMASK		(BUTTONMASK | PointerMotionMask)
48 +
#define LENGTH(x)		(sizeof x / sizeof x[0])
49 +
48 50
49 51
/* enums */
50 52
enum { BarTop, BarBot, BarOff };			/* bar position */
228 230
229 231
/* configuration, allows nested code to access above variables */
230 232
#include "config.h"
233 +
234 +
Bool prevtags[LENGTH(tags)] = {[0] = True};
231 235
232 236
/* function implementations */
233 237
void