about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--exwm-core.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 355b8b96c0..ab5159c6a7 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -126,7 +126,9 @@ Nil can be passed as placeholder."
 The action is to call FUNCTION with arguments ARGS.  If Emacs is not idle,
 defer the action until Emacs is idle.  Otherwise, defer the action until at
 least SECS seconds later."
-  `(run-with-idle-timer (time-add (or (current-idle-time) (- ,secs)) ,secs)
+  `(run-with-idle-timer (+ (float-time (or (current-idle-time)
+					   (seconds-to-time (- ,secs))))
+			   ,secs)
                         nil
                         ,function
                         ,@args))