From 9bb2c2d1e979baed730dc68a866a03d03bc4d475 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 17 Apr 2009 11:43:56 +0200 Subject: [PATCH] client: changing size hints does not arrange() It just calls property hook. Signed-off-by: Julien Danjou --- client.c | 2 +- lib/awful/layout/init.lua.in | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 0c111d4a5..9c5014acc 100644 --- a/client.c +++ b/client.c @@ -1721,7 +1721,7 @@ luaA_client_newindex(lua_State *L) break; case A_TK_SIZE_HINTS_HONOR: c->size_hints_honor = luaA_checkboolean(L, 3); - client_need_arrange(c); + hooks_property(c, "size_hints_honor"); break; case A_TK_BORDER_WIDTH: client_setborder(c, luaL_checknumber(L, 3)); diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in index 43077de83..85aaa2af6 100644 --- a/lib/awful/layout/init.lua.in +++ b/lib/awful/layout/init.lua.in @@ -82,5 +82,10 @@ function getname(layout) end hooks.arrange.register(on_arrange) +hooks.property.register(function (c, prop) + if c:isvisible() and prop == "size_hints_honor" then + on_arrange(c.screen) + end +end) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80