[hackers] [dwm] moved LENGTH to dwm.c, moved prevtags to dwm.c

From: <arg_AT_suckless.org>
Date: Wed Nov 07 09:51:08 2007

changeset: 1059:98d06be63ce5
tag: tip
user: arg_AT_suckless.org
date: Wed Nov 07 09:49:53 2007 +0100
summary: moved LENGTH to dwm.c, moved prevtags to dwm.c

diff -r 5e34476a3a1c -r 98d06be63ce5 config.def.h
--- a/config.def.h Sun Nov 04 17:49:56 2007 +0100
+++ b/config.def.h Wed Nov 07 09:49:53 2007 +0100
@@ -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 -r 5e34476a3a1c -r 98d06be63ce5 dwm.c
--- a/dwm.c Sun Nov 04 17:49:56 2007 +0100
+++ b/dwm.c Wed Nov 07 09:49:53 2007 +0100
@@ -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) {
Received on Wed Nov 07 2007 - 09:51:08 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:45 UTC