client: swapping does not set need_arrange
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a7b6c6bbd7
commit
e6e4b9f3b1
3
client.c
3
client.c
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue