summaryrefslogtreecommitdiff
path: root/patch/unfloatvisible.c
blob: fb8888f57e568a19d4852ab25d8867e81572742d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void
unfloatvisible(const Arg *arg)
{
    Client *c;

    for (c = selmon->clients; c; c = c->next)
        if (ISVISIBLE(c) && c->isfloating)
            c->isfloating = c->isfixed;

    if (arg && arg->v)
        setlayout(arg);
    else
        arrange(selmon);
}