From 829b30c8a692e93dc365a0ce0109fb4f26a033ef Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Mon, 16 Feb 2009 12:04:21 +0100 Subject: [PATCH] layout: reset need_arrange before calling arrange. Signed-off-by: Julien Danjou --- layout.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/layout.c b/layout.c index ba65e7b1e..678faf05e 100644 --- a/layout.c +++ b/layout.c @@ -46,6 +46,12 @@ arrange(int screen) client_ban(c); } + /* Reset status before calling arrange hook. + * This is needed if you call a function that relies + * on need_arrange while arrange is in progress. + */ + globalconf.screens[screen].need_arrange = false; + /* call hook */ if(globalconf.hooks.arrange != LUA_REFNIL) { @@ -70,9 +76,6 @@ arrange(int screen) p_delete(&qp_r); } - - /* reset status */ - globalconf.screens[screen].need_arrange = false; } /** Refresh the screen disposition