mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Revert "org-clock.el (org-user-idle-seconds): Simplify."
This reverts commit f398b9ee53
.
This commit is contained in:
parent
6347bf2f72
commit
0102b4b404
@ -1009,9 +1009,15 @@ This routine returns a floating point number."
|
||||
(cond
|
||||
((eq system-type 'darwin)
|
||||
(org-mac-idle-seconds))
|
||||
((eq window-system 'x)
|
||||
(max (org-x11-idle-seconds) (org-emacs-idle-seconds)))
|
||||
(t (org-emacs-idle-seconds))))
|
||||
((and
|
||||
(eq window-system 'x)
|
||||
;; Check that x11idle exists
|
||||
(eq (call-process-shell-command "command" nil nil nil "-v" "x11idle") 0)
|
||||
;; Check that x11idle can retrieve the idle time
|
||||
(eq (call-process-shell-command "x11idle" nil nil nil ) 0))
|
||||
(org-x11-idle-seconds))
|
||||
(t
|
||||
(org-emacs-idle-seconds))))
|
||||
|
||||
(defvar org-clock-user-idle-seconds)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user