simplify, use get_current_layout
This commit is contained in:
parent
421fb312b5
commit
bd8ede8d74
6
layout.c
6
layout.c
|
@ -57,7 +57,7 @@ static void
|
||||||
arrange(int screen)
|
arrange(int screen)
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
Tag **curtags = get_current_tags(screen);
|
Layout *curlay = get_current_layout(screen);
|
||||||
Window client_win, root_win;
|
Window client_win, root_win;
|
||||||
int x, y, d;
|
int x, y, d;
|
||||||
unsigned int m;
|
unsigned int m;
|
||||||
|
@ -71,7 +71,7 @@ arrange(int screen)
|
||||||
client_ban(c);
|
client_ban(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
curtags[0]->layout->arrange(screen);
|
curlay->arrange(screen);
|
||||||
|
|
||||||
for(c = globalconf.clients; c; c = c->next)
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
if(c->newcomer && client_isvisible(c, screen))
|
if(c->newcomer && client_isvisible(c, screen))
|
||||||
|
@ -90,8 +90,6 @@ arrange(int screen)
|
||||||
(root_win == None || client_win == None || client_win == root_win))
|
(root_win == None || client_win == None || client_win == root_win))
|
||||||
window_grabbuttons(c->screen, c->win, False, False);
|
window_grabbuttons(c->screen, c->win, False, False);
|
||||||
|
|
||||||
p_delete(&curtags);
|
|
||||||
|
|
||||||
/* reset status */
|
/* reset status */
|
||||||
globalconf.screens[screen].need_arrange = False;
|
globalconf.screens[screen].need_arrange = False;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue