awful: move awful hook registration in awful

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-31 23:44:33 +02:00
parent 26545ddecb
commit f48f26286e
2 changed files with 5 additions and 3 deletions

View File

@ -400,15 +400,12 @@ end
-- Set up some hooks
awful.hooks.focus(hook_focus)
awful.hooks.focus(awful.client.focus.history.add)
awful.hooks.unfocus(hook_unfocus)
awful.hooks.marked(hook_marked)
awful.hooks.unmarked(hook_unmarked)
awful.hooks.manage(hook_manage)
awful.hooks.unmanage(awful.client.focus.history.delete)
awful.hooks.mouseover(hook_mouseover)
awful.hooks.arrange(hook_arrange)
awful.hooks.arrange(awful.tag.history.update)
awful.hooks.timer(1, hook_timer)
awful.hooks.titleupdate(hook_titleupdate)
-- }}}

View File

@ -1031,4 +1031,9 @@ function P.titlebar.update(c, bg, fg, bg_focus, fg_focus)
end
end
-- Register standards hooks
P.hooks.arrange(P.tag.history.update)
P.hooks.focus(P.client.focus.history.add)
P.hooks.unmanage(P.client.focus.history.delete)
return P