From 198502f41dc3c436b73215f5e2a6b58b050ecfce Mon Sep 17 00:00:00 2001 From: "arg@suckless.org" Date: Wed, 7 Nov 2007 09:49:53 +0100 Subject: moved LENGTH to dwm.c, moved prevtags to dwm.c --- dwm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index f5f7c99..f0dd14b 100644 --- a/dwm.c +++ b/dwm.c @@ -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) { -- cgit v1.2.3