Hi,

Emacs on MS-Windows learned today how to measure the system-wide user
idleness time, so I suggest the following patch to org-clock.el:

diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index 5fd0580..e204e20 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -1287,6 +1287,8 @@ org-user-idle-seconds
     (org-mac-idle-seconds))
    ((and (eq window-system 'x) org-x11idle-exists-p)
     (org-x11-idle-seconds))
+   ((fboundp 'w32-system-idle-time)
+    (/ (w32-system-idle-time) 1000.0))
    ((and
      org-logind-dbus-session-path
      (dbus-get-property

Reply via email to