From c06a58a581c3dd51f10a6e4394c3694dbc0de036 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 17 Apr 2009 23:52:58 +0200 Subject: [PATCH] awful.layout: re-arrange on hide property change Signed-off-by: Julien Danjou --- client.c | 1 + lib/awful/layout/init.lua.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index ee8f6f2e..0d0e2e80 100644 --- a/client.c +++ b/client.c @@ -1472,6 +1472,7 @@ luaA_client_newindex(lua_State *L) client_need_arrange(c); c->ishidden = b; client_need_arrange(c); + hook_property(client, c, "hide"); } break; case A_TK_MINIMIZED: diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index ca49b9a8..d8b36060 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -101,7 +101,8 @@ hooks.property.register(function (c, prop) or prop == "fullscreen" or prop == "maximized_horizontal" or prop == "maximized_vertical" - or prop == "border_width" then + or prop == "border_width" + or prop == "hide" then on_arrange(c.screen) end end)