simplify, use get_current_layout

This commit is contained in:
Julien Danjou 2008-01-20 17:10:47 +01:00
parent 421fb312b5
commit bd8ede8d74
1 changed files with 2 additions and 4 deletions

View File

@ -57,7 +57,7 @@ static void
arrange(int screen)
{
Client *c;
Tag **curtags = get_current_tags(screen);
Layout *curlay = get_current_layout(screen);
Window client_win, root_win;
int x, y, d;
unsigned int m;
@ -71,7 +71,7 @@ arrange(int screen)
client_ban(c);
}
curtags[0]->layout->arrange(screen);
curlay->arrange(screen);
for(c = globalconf.clients; c; c = c->next)
if(c->newcomer && client_isvisible(c, screen))
@ -90,8 +90,6 @@ arrange(int screen)
(root_win == None || client_win == None || client_win == root_win))
window_grabbuttons(c->screen, c->win, False, False);
p_delete(&curtags);
/* reset status */
globalconf.screens[screen].need_arrange = False;
}