about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@suckless.org <unknown>2007-11-07 09:49:53 +0100
committerarg@suckless.org <unknown>2007-11-07 09:49:53 +0100
commit198502f41dc3c436b73215f5e2a6b58b050ecfce (patch)
tree6000b2bed57b5f560c8fa8261cd8a1f81fc72a6e
parent35efafe8ac901b7764b7950d3a7c8565e53c5381 (diff)
downloaddwm-198502f41dc3c436b73215f5e2a6b58b050ecfce.tar.gz
moved LENGTH to dwm.c, moved prevtags to dwm.c
-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 @@
 #define SELBGCOLOR		"#0066ff"
 #define SELFGCOLOR		"#ffffff"
 
-/* convenience */
-#define LENGTH(x) (sizeof x / sizeof x[0])
-
 /* tagging */
 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
 Bool seltags[LENGTH(tags)] = {[0] = True};
-Bool prevtags[LENGTH(tags)] = {[0] = True};
 Rule rules[] = {
 	/* class:instance:title regex	tags regex	isfloating */
 	{ "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 @@
 #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) {
lt;zahary@gmail.com> 2013-08-19 01:27:05 +0300 Revert "Revert "bugfix: emulated thread vars used in combination with the mark & sweep GC""' href='/ahoang/Nim/commit/compiler/ccgthreadvars.nim?h=devel&id=6ddd4e6a3f46f4fdcaec8ae0b08758858085ec26'>6ddd4e6a3 ^
b731e6ef1 ^
2df9b442c ^
3ac6bd8ae ^
fab69661a ^
39049e151 ^
fab69661a ^
39049e151 ^
4fa80956b ^
f8d98700a ^
bd1cb9e77 ^









4fa80956b ^
4fa80956b ^






39049e151 ^
4fa80956b ^
39049e151 ^




4fa80956b ^
3ac6bd8ae ^
4fa80956b ^
39049e151 ^
4fa80956b ^
2df9b442c ^
4fa80956b ^
57874ed9b ^

a585caebc ^
39049e151 ^
a585caebc ^
39049e151 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65