You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
469 B
27 lines
469 B
3 years ago
|
void
|
||
|
transferall(const Arg *arg)
|
||
|
{
|
||
|
Client *c, *n = selmon->clients, *attachfrom = NULL;
|
||
|
int i = 0, nstackclients = 0;
|
||
|
while (n) {
|
||
|
c = n;
|
||
|
n = c->next;
|
||
|
if (!ISVISIBLE(c) || c->isfloating) continue;
|
||
|
if (i >= selmon->nmaster) {
|
||
|
detach(c);
|
||
|
if (!attachfrom) {
|
||
|
attach(c);
|
||
|
} else {
|
||
|
c->next = attachfrom->next;
|
||
|
attachfrom->next = c;
|
||
|
}
|
||
|
attachfrom = c;
|
||
|
nstackclients++;
|
||
|
}
|
||
|
i++;
|
||
|
}
|
||
|
selmon->nmaster = nstackclients;
|
||
|
arrange(selmon);
|
||
|
}
|
||
|
|