You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
533 B
C
32 lines
533 B
C
void
|
|
distributetags(const Arg *arg)
|
|
{
|
|
Client *c;
|
|
unsigned int ui = 1;
|
|
int i = 0;
|
|
|
|
#if TAGSYNC_PATCH
|
|
Monitor *origselmon = selmon;
|
|
for (selmon = mons; selmon; selmon = selmon->next) {
|
|
#endif // TAGSYNC_PATCH
|
|
|
|
for (c = selmon->clients; c; c = c->next) {
|
|
if (HIDDEN(c))
|
|
continue;
|
|
if (!(c->tags & TAGMASK))
|
|
continue;
|
|
c->tags = (ui << i) & TAGMASK;
|
|
i = (i + 1) % NUMTAGS;
|
|
}
|
|
|
|
#if TAGSYNC_PATCH
|
|
}
|
|
selmon = origselmon;
|
|
focus(NULL);
|
|
arrange(NULL);
|
|
#else
|
|
focus(NULL);
|
|
arrange(selmon);
|
|
#endif // TAGSYNC_PATCH
|
|
}
|