mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-27 06:14:45 +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
|
-- tackling taglist refresh which disabled prompt
|
||||||
-- from being rendered until input
|
-- from being rendered until input
|
||||||
awful.tag.setproperty(t, "initial", true)
|
awful.tag.setproperty(t, "initial", true)
|
||||||
|
local tmr
|
||||||
local f = function() rename(t); tmr:stop() end
|
local f = function() rename(t); tmr:stop() end
|
||||||
tmr = capi.timer({timeout = 0.01})
|
tmr = capi.timer({timeout = 0.01})
|
||||||
tmr:add_signal("timeout", f)
|
tmr:add_signal("timeout", f)
|
||||||
|
@ -715,10 +716,9 @@ function sweep()
|
||||||
not awful.tag.getproperty(t, "leave_kills") then
|
not awful.tag.getproperty(t, "leave_kills") then
|
||||||
local delay = awful.tag.getproperty(t, "sweep_delay")
|
local delay = awful.tag.getproperty(t, "sweep_delay")
|
||||||
if delay then
|
if delay then
|
||||||
local f
|
local tmr
|
||||||
f = function()
|
local f = function()
|
||||||
del(t)
|
del(t)
|
||||||
tmr:remove_signal("timeout", f)
|
|
||||||
tmr:stop()
|
tmr:stop()
|
||||||
end
|
end
|
||||||
tmr = capi.timer({timeout = delay})
|
tmr = capi.timer({timeout = delay})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue