summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.def.h4
-rw-r--r--dwm.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 9714129..b437a0e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,13 +11,9 @@
11#define SELBGCOLOR "#0066ff" 11#define SELBGCOLOR "#0066ff"
12#define SELFGCOLOR "#ffffff" 12#define SELFGCOLOR "#ffffff"
13 13
14/* convenience */
15#define LENGTH(x) (sizeof x / sizeof x[0])
16
17/* tagging */ 14/* tagging */
18const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; 15const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
19Bool seltags[LENGTH(tags)] = {[0] = True}; 16Bool seltags[LENGTH(tags)] = {[0] = True};
20Bool prevtags[LENGTH(tags)] = {[0] = True};
21Rule rules[] = { 17Rule rules[] = {
22 /* class:instance:title regex tags regex isfloating */ 18 /* class:instance:title regex tags regex isfloating */
23 { "Firefox", "www", False }, 19 { "Firefox", "www", False },
diff --git a/dwm.c b/dwm.c
index f5f7c99..f0dd14b 100644
--- a/dwm.c
+++ b/dwm.c
@@ -45,6 +45,8 @@
45#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) 45#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
46#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) 46#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
47#define MOUSEMASK (BUTTONMASK | PointerMotionMask) 47#define MOUSEMASK (BUTTONMASK | PointerMotionMask)
48#define LENGTH(x) (sizeof x / sizeof x[0])
49
48 50
49/* enums */ 51/* enums */
50enum { BarTop, BarBot, BarOff }; /* bar position */ 52enum { BarTop, BarBot, BarOff }; /* bar position */
@@ -229,6 +231,8 @@ Regs *regs = NULL;
229/* configuration, allows nested code to access above variables */ 231/* configuration, allows nested code to access above variables */
230#include "config.h" 232#include "config.h"
231 233
234Bool prevtags[LENGTH(tags)] = {[0] = True};
235
232/* function implementations */ 236/* function implementations */
233void 237void
234applyrules(Client *c) { 238applyrules(Client *c) {