The deadlock happens if org-resolve-clocks is called automatically (for
resolving idle time) while focus is in a EXWM-mode buffer. The
result is that the focus is stuck with the EXWM-mode buffer away from
Emacs and the user can not tell EXWM to change the focus to the
mini-buffer to interact with org because org is grabbing all the input
away from EXWM.

The only way out for the user is to kill the application in EXWM buffer
from another ttyn terminal to be able to interact with
org-resolve-clocks.

See the issue discussion here as well: https://github.com/ch11ng/exwm/issues/921

Steps to reproduce:

1. Run X with EXWM as its window manager.

2. Clock in some tasks in an org-buffer.

3. Start some non-Emacs application (like Firefox)) it will run in an
EXWM-mode buffer.

4. Leave the input for more than org-clock-idle-time.

5. org-resolve-clocks is get called and you get stuck in your
EXWM-mode buffer till you kill the application somehow, because all you
keys are all going to the EXWM-buffer and those that are supposed to go
to EXWM to interact with Emacs is grabbed by org-resolve-clocks and ignored.

Thank you very much.

Emacs  : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, 
cairo version 1.17.8)
Package: Org mode version 9.6.6 (release_9.6.6 @ 
/usr/share/emacs/29.1/lisp/org/)

Reply via email to