mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-24 21:04:52 +02:00
shifty: ensure tmr is local to the current function
This commit is contained in:
parent
3dd614555a
commit
685860762d
1 changed files with 3 additions and 3 deletions
|
@ -422,6 +422,7 @@ function add(args)
|
|||
-- tackling taglist refresh which disabled prompt
|
||||
-- from being rendered until input
|
||||
awful.tag.setproperty(t, "initial", true)
|
||||
local tmr
|
||||
local f = function() rename(t); tmr:stop() end
|
||||
tmr = capi.timer({timeout = 0.01})
|
||||
tmr:add_signal("timeout", f)
|
||||
|
@ -715,10 +716,9 @@ function sweep()
|
|||
not awful.tag.getproperty(t, "leave_kills") then
|
||||
local delay = awful.tag.getproperty(t, "sweep_delay")
|
||||
if delay then
|
||||
local f
|
||||
f = function()
|
||||
local tmr
|
||||
local f = function()
|
||||
del(t)
|
||||
tmr:remove_signal("timeout", f)
|
||||
tmr:stop()
|
||||
end
|
||||
tmr = capi.timer({timeout = delay})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue