mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 03:08:34 +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
|
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 = function()
|
local f
|
||||||
del(t); tmr:stop()
|
f = function()
|
||||||
end
|
del(t)
|
||||||
|
tmr:remove_signal("timeout", f)
|
||||||
|
tmr:stop()
|
||||||
|
end
|
||||||
tmr = capi.timer({timeout = delay})
|
tmr = capi.timer({timeout = delay})
|
||||||
tmr:add_signal("timeout", f)
|
tmr:add_signal("timeout", f)
|
||||||
tmr:start()
|
tmr:start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue