From 834405425e96cdaa8c4d66c013505b8983fdc3d8 Mon Sep 17 00:00:00 2001 From: Fabienne Ducroquet Date: Sat, 24 May 2008 13:55:50 +0200 Subject: [PATCH] Rearrange the screen when changing layout Signed-off-by: Julien Danjou --- tag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tag.c b/tag.c index 708db3c49..675473c61 100644 --- a/tag.c +++ b/tag.c @@ -447,7 +447,10 @@ luaA_tag_layout_set(lua_State *L) layout_t *l = name_func_lookup(name, LayoutList); if(l) + { (*tag)->layout = l; + globalconf.screens[(*tag)->screen].need_arrange = true; + } else luaL_error(L, "unknown layout: %s", name);