Permalink
Browse files

Make timers local so that they don't mangle each others.

  • Loading branch information...
1 parent d7abba7 commit 1de8b879f60311461a7a35f0a38c4ab9b0b969b8 @vincentbernat vincentbernat committed with Oct 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 init.lua
View
2 init.lua
@@ -393,6 +393,7 @@ function add(args)
-- from being rendered until input
awful.tag.setproperty(t, "initial", true)
local f
+ local tmr
if args.position then
f = function() rename(t, args.rename, true); tmr:stop() end
else
@@ -770,6 +771,7 @@ function sweep()
not awful.tag.getproperty(t, "leave_kills") then
local delay = awful.tag.getproperty(t, "sweep_delay")
if delay then
+ local tmr
local f = function()
del(t); tmr:stop()
end

0 comments on commit 1de8b87

Please sign in to comment.