Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
35efafe
)
moved LENGTH to dwm.c, moved prevtags to dwm.c
author
[email protected]
<unknown>
Wed, 7 Nov 2007 08:49:53 +0000
(09:49 +0100)
committer
[email protected]
<unknown>
Wed, 7 Nov 2007 08:49:53 +0000
(09:49 +0100)
config.def.h
diff
|
blob
|
history
dwm.c
diff
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index
9714129
..
b437a0e
100644
(file)
--- a/
config.def.h
+++ b/
config.def.h
@@
-11,13
+11,9
@@
#define SELBGCOLOR "#0066ff"
#define SELFGCOLOR "#ffffff"
#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};
/* 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 },
Rule rules[] = {
/* class:instance:title regex tags regex isfloating */
{ "Firefox", "www", False },
diff --git
a/dwm.c
b/dwm.c
index
f5f7c99
..
f0dd14b
100644
(file)
--- 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 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 */
/* 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"
/* configuration, allows nested code to access above variables */
#include "config.h"
+Bool prevtags[LENGTH(tags)] = {[0] = True};
+
/* function implementations */
void
applyrules(Client *c) {
/* function implementations */
void
applyrules(Client *c) {