simplify grid layout

This commit is contained in:
Julien Danjou 2007-09-11 15:41:25 +02:00
parent 10e324ad0b
commit eb1759f28f
1 changed files with 13 additions and 16 deletions

View File

@ -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);
}