Skip to content

Commit

Permalink
Merge pull request #6 from residentsummer/44bd5584729596788b119d35230…
Browse files Browse the repository at this point in the history
…c78f9a4059f06

Add signals before usage
  • Loading branch information
cdump committed Jan 9, 2013
2 parents 82bb19b + 44bd558 commit ad67389
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,21 @@ function getlayout(name)
end
end

-- signals
-- add signals before using them
-- Note: these signals are emitted when tag properties
-- are accessed through awful.tag.setproperty
capi.tag.add_signal("property::initial")
capi.tag.add_signal("property::used")
capi.tag.add_signal("property::visited")
capi.tag.add_signal("property::deserted")
capi.tag.add_signal("property::matched")
capi.tag.add_signal("property::selected")
capi.tag.add_signal("property::position")
capi.tag.add_signal("property::exclusive")
capi.tag.add_signal("property::persist")
capi.tag.add_signal("property::index")

-- replace awful's default hook
capi.client.connect_signal("manage", match)
capi.client.connect_signal("unmanage", sweep)
capi.client.disconnect_signal("manage", awful.tag.withcurrent)
Expand All @@ -1065,3 +1079,4 @@ for s = 1, capi.screen.count() do
end

return shifty

0 comments on commit ad67389

Please sign in to comment.