layout: reset need_arrange before calling arrange.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-02-16 12:04:21 +01:00 committed by Julien Danjou
parent c9caf05c2d
commit 829b30c8a6
1 changed files with 6 additions and 3 deletions

View File

@ -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