client: swapping does not set need_arrange

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-17 23:50:13 +02:00
parent a7b6c6bbd7
commit e6e4b9f3b1
2 changed files with 5 additions and 3 deletions

View File

@ -1230,9 +1230,6 @@ luaA_client_swap(lua_State *L)
*ref_c = swap;
*ref_swap = c;
client_need_arrange(c);
client_need_arrange(swap);
/* Call hook to notify list change */
if(globalconf.hooks.clients != LUA_REFNIL)
luaA_dofunction(L, globalconf.hooks.clients, 0, 0);

View File

@ -111,5 +111,10 @@ end)
hooks.padding.register(function(screen) on_arrange(screen) end)
hooks.focus.register(function(c) on_arrange(c.screen) end)
hooks.clients.register(function()
for screen = 1, capi.screen.count() do
on_arrange(screen)
end
end)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80