about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c4
1 files changed, 4 insertions, 0 deletions
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) {
ref='#n110'>110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149