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:
parent
937cab0a30
commit
9bb2c2d1e9
2
client.c
2
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));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue