[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-x11idle-exists-p with emacs --daemon
From: |
Julien Cubizolles |
Subject: |
Re: org-x11idle-exists-p with emacs --daemon |
Date: |
Fri, 28 Oct 2022 23:48:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko <yantar92@posteo.net> writes:
> Does the attached patch work for you?
Yes it does, thanks.
Also, org-user-idle-seconds uses (eq window-system 'x) which according
to its docstring should be replaced by (display-graphic-p). I've tested
the change and it's working, with the added advantage that it works
both in a X11 and in a wayland session (provided your
org-clock-x11idle-program-name works in both, mine does).
There is another use of window-sytem in the org-mode source, namely in
org-get-x-clipboard in org-compat.el, but I don't know if it's safe to
make the switch there.
--
Julien Cubizolles