hooks: remove arrange

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-18 17:14:43 +02:00
parent 24ca38f751
commit 3926f62ea3
7 changed files with 2 additions and 21 deletions

14
hooks.c
View File

@ -149,19 +149,6 @@ luaA_hooks_tagged(lua_State *L)
HANDLE_HOOK(L, globalconf.hooks.tagged);
}
/** Set the function called on each screen arrange. This function is called
* with the screen number as argument.
* \param L The Lua VM state.
* \return The number of elements pushed on stack.
* \luastack
* \lparam A function to call on each screen arrange.
*/
static int
luaA_hooks_arrange(lua_State *L)
{
HANDLE_HOOK(L, globalconf.hooks.arrange);
}
/** Set the function called on each client's property change.
* This function is called with the client object as argument and the
* property name.
@ -256,7 +243,6 @@ const struct luaL_reg awesome_hooks_lib[] =
{ "mouse_enter", luaA_hooks_mouse_enter },
{ "mouse_leave", luaA_hooks_mouse_leave },
{ "property", luaA_hooks_property },
{ "arrange", luaA_hooks_arrange },
{ "clients", luaA_hooks_clients },
{ "tags", luaA_hooks_tags },
{ "tagged", luaA_hooks_tagged },

View File

@ -91,7 +91,6 @@ function getname(layout)
return layout.name
end
hooks.arrange.register(on_arrange)
hooks.property.register(function (obj, prop)
local objtype = type(obj)
if objtype == "client" then

View File

@ -64,7 +64,6 @@ function new(screen, label, buttons)
local uc = function (c) return u(c.screen) end
hooks.focus.register(uc)
hooks.unfocus.register(uc)
hooks.arrange.register(u)
hooks.tags.register(u)
hooks.tagged.register(uc)
hooks.property.register(function (c, prop)

View File

@ -53,7 +53,7 @@ function new(label, buttons)
}
local data = setmetatable({}, { __mode = 'k' })
local u = function () tasklist_update(w, buttons, label, data, widgets) end
hooks.arrange.register(u)
hooks.tags.register(u)
hooks.clients.register(u)
hooks.tagged.register(u)
hooks.focus.register(u)

View File

@ -304,7 +304,7 @@ end
-- Keep tabulous in sync when focus change
awful.hooks.focus.register(hook_focus)
-- update the tabbing when the tags changes
awful.hooks.arrange.register(update_tabbing)
awful.hooks.tags.register(update_tabbing)
-- Set up hook so we don't leave lost hidden clients
awful.hooks.unmanage.register(untab)

1
luaa.c
View File

@ -736,7 +736,6 @@ luaA_init(xdgHandle* xdg)
globalconf.hooks.unfocus = LUA_REFNIL;
globalconf.hooks.mouse_enter = LUA_REFNIL;
globalconf.hooks.mouse_leave = LUA_REFNIL;
globalconf.hooks.arrange = LUA_REFNIL;
globalconf.hooks.clients = LUA_REFNIL;
globalconf.hooks.tags = LUA_REFNIL;
globalconf.hooks.tagged = LUA_REFNIL;

View File

@ -110,8 +110,6 @@ struct awesome_t
luaA_ref mouse_enter;
/** Command to run when mouse leave a client */
luaA_ref mouse_leave;
/** Command to run on arrange */
luaA_ref arrange;
/** Command to run when client list changes */
luaA_ref clients;
/** Command to run on numbers of tag changes */