simplify grid layout
This commit is contained in:
parent
10e324ad0b
commit
eb1759f28f
|
@ -29,10 +29,8 @@ grid(Display *disp, awesome_config *awesomeconf)
|
||||||
cw = waw / (cols ? cols : 1);
|
cw = waw / (cols ? cols : 1);
|
||||||
|
|
||||||
for(i = 0, c = clients; c; c = c->next)
|
for(i = 0, c = clients; c; c = c->next)
|
||||||
if(isvisible(c, awesomeconf->selected_tags, awesomeconf->ntags))
|
|
||||||
{
|
{
|
||||||
unban(c);
|
if(!IS_TILED(c, awesomeconf->selected_tags, awesomeconf->ntags))
|
||||||
if(c->isfloating)
|
|
||||||
continue;
|
continue;
|
||||||
c->ismax = False;
|
c->ismax = False;
|
||||||
cx = (i / rows) * cw;
|
cx = (i / rows) * cw;
|
||||||
|
@ -43,8 +41,7 @@ grid(Display *disp, awesome_config *awesomeconf)
|
||||||
resize(c, cx, cy, cw - 2 * c->border + aw, ch - 2 * c->border + ah, False);
|
resize(c, cx, cy, cw - 2 * c->border + aw, ch - 2 * c->border + ah, False);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
ban(c);
|
|
||||||
focus(disp, &dc, NULL, True, awesomeconf);
|
focus(disp, &dc, NULL, True, awesomeconf);
|
||||||
restack(disp, awesomeconf);
|
restack(disp, awesomeconf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue