emacs-eaf / emacs-eaf/emacs-application-framework

EAF pdf viewer loses focus

Open
#1,182 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.5k
Forks
245
Avg merge
22h 20m
Merged PRs (30d)
1

Description

**Describe the bug**
The installation documentation does not mention that app-frontmost needs to be installed, and it is not installed on my Mac — I also don’t know how to install it. When using EAF to view PDFs, no error is reported, but after switching windows while viewing a PDF, it is easy for the viewer to lose focus.

**To Reproduce**
Viewing PDFs in EAF,after switching window and back to emacs, the PDF viewer loses focus.

**Expected behavior**
switch back to emacs, keep focus on pdf

**Versions (please complete the following info):**
- Distro and DE/WM:
- Versions of Dependencies:
- M-x emacs-version: GNU Emacs 31.0.50 (build 5, aarch64-apple-darwin24.1.0, NS appkit-2575.20 Version 15.1.1 (Build 24B2091)) of 2025-04-11

**Error logs**
2025-08-28 21:02:27.788 Python[38744:2667269] +[IMKClient subclass]: chose IMKClient_Modern
2025-08-28 21:02:27.788 Python[38744:2667269] +[IMKInputSession subclass]: chose IMKInputSession_Modern

**Screenshots**

Image

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the installation documentation and reproduce PDF viewing in EAF on macOS, including the reported missing app-frontmost dependency. Then trace the PDF viewer's focus behavior after switching windows. Done means the dependency guidance and the focus behavior are addressed, with the result verified on the stated Emacs and macOS versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, macos, python
Domain
desktop, documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.