From bd8ede8d74851a61b8b3e3c59ac20260b85398ed Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 20 Jan 2008 17:10:47 +0100 Subject: [PATCH] simplify, use get_current_layout --- layout.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/layout.c b/layout.c index 63cd57e3f..8385c1fa4 100644 --- a/layout.c +++ b/layout.c @@ -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; }