diff --git a/lib/gears/timer.lua b/lib/gears/timer.lua index ee1778d71..66c10f171 100644 --- a/lib/gears/timer.lua +++ b/lib/gears/timer.lua @@ -91,7 +91,7 @@ function timer:start() gdebug.print_error(traceback("timer already started")) return end - self.data.source_id = glib.timeout_add(glib.PRIORITY_DEFAULT, self.data.timeout * 1000, function() + self.data.source_id = glib.timeout_add(glib.PRIORITY_DEFAULT, math.ceil(self.data.timeout * 1000), function() protected_call(self.emit_signal, self, "timeout") return true end)