awful.tag: register 'withcurrent' explicitly

This explicitly registers withcurrent(c) as a manage signal handler so
that it can be removed if necessary.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2010-01-08 15:16:37 +00:00 committed by Julien Danjou
parent 026247cf18
commit 5b8acee224
1 changed files with 2 additions and 1 deletions

View File

@ -374,10 +374,11 @@ capi.client.add_signal("manage", function(c, startup)
c.screen = capi.mouse.screen c.screen = capi.mouse.screen
end end
end end
withcurrent(c, startup)
c:add_signal("property::screen", withcurrent) c:add_signal("property::screen", withcurrent)
end) end)
capi.client.add_signal("manage", withcurrent)
for s = 1, capi.screen.count() do for s = 1, capi.screen.count() do
capi.screen[s]:add_signal("tag::history::update", history.update) capi.screen[s]:add_signal("tag::history::update", history.update)
end end