client: changing size hints does not arrange()

It just calls property hook.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-17 11:43:56 +02:00
parent 937cab0a30
commit 9bb2c2d1e9
2 changed files with 6 additions and 1 deletions

View File

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

View File

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