mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
shifty: ensure that the sweep timer is not triggered endlessly
This commit is contained in:
parent
07e2b73dd6
commit
5cd8925efe
1 changed files with 6 additions and 3 deletions
|
@ -715,9 +715,12 @@ function sweep()
|
|||
not awful.tag.getproperty(t, "leave_kills") then
|
||||
local delay = awful.tag.getproperty(t, "sweep_delay")
|
||||
if delay then
|
||||
local f = function()
|
||||
del(t); tmr:stop()
|
||||
end
|
||||
local f
|
||||
f = function()
|
||||
del(t)
|
||||
tmr:remove_signal("timeout", f)
|
||||
tmr:stop()
|
||||
end
|
||||
tmr = capi.timer({timeout = delay})
|
||||
tmr:add_signal("timeout", f)
|
||||
tmr:start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue