tag.c
// for the benefit of EWMH type pagers, tag = desktop
// but, since a window can have multiple tags... oh well
for the benefit of EWMH type pagers, tag = desktop
but, since a window can have multiple tags... oh well
for the benefit of EWMH type pagers tag = desktop but since a window can have multiple tags ... oh well
unsigned int tag_to_desktop(unsigned int tag)
{
	unsigned int i; for (i = 0; i < TAGS; i++) if (tag & (1<<i)) return i;
	return 0xffffffff;
}
unsigned int tag_to_desktop ( unsigned int tag ) { unsigned int i ; for ( i = 0 ; i < TAGS ; i ++ ) if ( tag & ( 1 << i ) ) return i ; return 0xffffffff ; }
for the benefit of EWMH type pagers, tag = desktop
but, since a window can have multiple tags... oh well
for the benefit of EWMH type pagers tag = desktop but since a window can have multiple tags ... oh well