From 48e51b4dd60a0a2a5aa31729f5fe4508788173c4 Mon Sep 17 00:00:00 2001 From: blastmaster Date: Fri, 12 Dec 2014 11:53:54 +0100 Subject: [PATCH] update gears.timer --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index be4a46f..cd4f4d2 100644 --- a/init.lua +++ b/init.lua @@ -10,7 +10,7 @@ local type = type local pairs = pairs local tonumber = tonumber -local capi = { timer = timer } +local timer = require("gears.timer") local os = { time = os.time } local table = { insert = table.insert, @@ -116,7 +116,7 @@ local function regregister(reg) -- Start the timer if reg.timer > 0 then local tm = timers[reg.timer] and timers[reg.timer].timer - tm = tm or capi.timer({ timeout = reg.timer }) + tm = tm or timer({ timeout = reg.timer }) if tm.connect_signal then tm:connect_signal("timeout", reg.update) else