tmoved LENGTH to dwm.c, moved prevtags to dwm.c - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 198502f41dc3c436b73215f5e2a6b58b050ecfce
(DIR) parent 35efafe8ac901b7764b7950d3a7c8565e53c5381
(HTM) Author: arg@suckless.org <unknown>
Date: Wed, 7 Nov 2007 09:49:53 +0100
moved LENGTH to dwm.c, moved prevtags to dwm.c
Diffstat:
M config.def.h | 4 ----
M dwm.c | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/config.def.h b/config.def.h
t@@ -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 },
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -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 */
t@@ -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) {