removed debug output, sanitized tag limit check
parent
9f569fac74
commit
56b2fece9e
13
dwm.c
13
dwm.c
|
@ -234,11 +234,10 @@ Window root, barwin;
|
||||||
/* configuration, allows nested code to access above variables */
|
/* configuration, allows nested code to access above variables */
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
/* check if all tags will fit into a uint bitarray. */
|
/* compile-time check if all tags fit into an uint bit array. */
|
||||||
static char tags_is_a_sign_that_your_IQ[sizeof(int) * 8 < LENGTH(tags) ? -1 : 1];
|
struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1]; };
|
||||||
|
|
||||||
/* function implementations */
|
/* function implementations */
|
||||||
|
|
||||||
void
|
void
|
||||||
applyrules(Client *c) {
|
applyrules(Client *c) {
|
||||||
uint i;
|
uint i;
|
||||||
|
@ -1548,14 +1547,6 @@ togglelayout(const void *arg) {
|
||||||
|
|
||||||
void
|
void
|
||||||
toggletag(const void *arg) {
|
toggletag(const void *arg) {
|
||||||
int i, m = *(int *)arg;
|
|
||||||
for(i = 0; i < sizeof(int) * 8; i++)
|
|
||||||
fputc(m & 1 << i ? '1' : '0', stdout);
|
|
||||||
puts("");
|
|
||||||
for(i = 0; i < sizeof(int) * 8; i++)
|
|
||||||
fputc(TAGMASK & 1 << i ? '1' : '0', stdout);
|
|
||||||
puts("aaa");
|
|
||||||
|
|
||||||
if(sel && (sel->tags ^ ((*(int *)arg) & TAGMASK))) {
|
if(sel && (sel->tags ^ ((*(int *)arg) & TAGMASK))) {
|
||||||
sel->tags ^= (*(int *)arg) & TAGMASK;
|
sel->tags ^= (*(int *)arg) & TAGMASK;
|
||||||
arrange();
|
arrange();
|
||||||
|
|
Loading…
Reference in New Issue