layout: reset need_arrange before calling arrange.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c9caf05c2d
commit
829b30c8a6
9
layout.c
9
layout.c
|
@ -46,6 +46,12 @@ arrange(int screen)
|
||||||
client_ban(c);
|
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 */
|
/* call hook */
|
||||||
if(globalconf.hooks.arrange != LUA_REFNIL)
|
if(globalconf.hooks.arrange != LUA_REFNIL)
|
||||||
{
|
{
|
||||||
|
@ -70,9 +76,6 @@ arrange(int screen)
|
||||||
|
|
||||||
p_delete(&qp_r);
|
p_delete(&qp_r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset status */
|
|
||||||
globalconf.screens[screen].need_arrange = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Refresh the screen disposition
|
/** Refresh the screen disposition
|
||||||
|
|
Loading…
Reference in New Issue