summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-22 13:35:45 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-22 13:35:45 +0100
commit56b2fece9e2d42cdd5ca34623864a9d470c1e64a (patch)
tree211178f3e46ceee168eabdf19def4b4695a81b8f /dwm.c
parentsetmfact argument was wrong (diff)
downloaddwm-56b2fece9e2d42cdd5ca34623864a9d470c1e64a.tar.gz
dwm-56b2fece9e2d42cdd5ca34623864a9d470c1e64a.zip
removed debug output, sanitized tag limit check
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/dwm.c b/dwm.c
index 53f0c12..f46f069 100644
--- a/dwm.c
+++ b/dwm.c
@@ -234,11 +234,10 @@ Window root, barwin;
234/* configuration, allows nested code to access above variables */ 234/* configuration, allows nested code to access above variables */
235#include "config.h" 235#include "config.h"
236 236
237/* check if all tags will fit into a uint bitarray. */ 237/* compile-time check if all tags fit into an uint bit array. */
238static char tags_is_a_sign_that_your_IQ[sizeof(int) * 8 < LENGTH(tags) ? -1 : 1]; 238struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
239 239
240/* function implementations */ 240/* function implementations */
241
242void 241void
243applyrules(Client *c) { 242applyrules(Client *c) {
244 uint i; 243 uint i;
@@ -1548,14 +1547,6 @@ togglelayout(const void *arg) {
1548 1547
1549void 1548void
1550toggletag(const void *arg) { 1549toggletag(const void *arg) {
1551 int i, m = *(int *)arg;
1552 for(i = 0; i < sizeof(int) * 8; i++)
1553 fputc(m & 1 << i ? '1' : '0', stdout);
1554 puts("");
1555 for(i = 0; i < sizeof(int) * 8; i++)
1556 fputc(TAGMASK & 1 << i ? '1' : '0', stdout);
1557 puts("aaa");
1558
1559 if(sel && (sel->tags ^ ((*(int *)arg) & TAGMASK))) { 1550 if(sel && (sel->tags ^ ((*(int *)arg) & TAGMASK))) {
1560 sel->tags ^= (*(int *)arg) & TAGMASK; 1551 sel->tags ^= (*(int *)arg) & TAGMASK;
1561 arrange(); 1552 arrange();