X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=f0dd14b66c15c27483162ea11fbcd34397744be2;hp=f5f7c99ee6ab2903bc6088caa505f5a7b504607f;hb=198502f41dc3c436b73215f5e2a6b58b050ecfce;hpb=35efafe8ac901b7764b7950d3a7c8565e53c5381 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) {