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);
|
||||
|
||||
for(i = 0, c = clients; c; c = c->next)
|
||||
if(isvisible(c, awesomeconf->selected_tags, awesomeconf->ntags))
|
||||
{
|
||||
unban(c);
|
||||
if(c->isfloating)
|
||||
if(!IS_TILED(c, awesomeconf->selected_tags, awesomeconf->ntags))
|
||||
continue;
|
||||
c->ismax = False;
|
||||
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);
|
||||
i++;
|
||||
}
|
||||
else
|
||||
ban(c);
|
||||
|
||||
focus(disp, &dc, NULL, True, awesomeconf);
|
||||
restack(disp, awesomeconf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue