emacs-eaf / emacs-application-framework

EAF, an extensible framework that revolutionizes the graphical capabilities of Emacs
GNU General Public License v3.0
3.05k stars 230 forks source link

No keyboard input from emacs #1117

Open BrunodaSilvaBelo opened 10 months ago

BrunodaSilvaBelo commented 10 months ago

Describe the bug When i start any app with eaf (browser or pdf-viewer), for example, no keyboard input is read.

To Reproduce I install using straight, this is my eaf config:

(use-package eaf
  :straight (eaf :type git :host github
                 :repo  "emacs-eaf/emacs-application-framework"
                 :files ("*.el" "*.py" "core" "app" "*.json")
                 :includes (eaf-markdown-previewer eaf-browser eaf-pdf-viewer)
                 :pre-build (("python" "install-eaf.py" "--install" "browser" "markdown-previewer" "pdf-viewer"))))

(use-package eaf-pdf-viewer
  :after eaf
  :hook
  (tex-mode . (lambda ()
                (add-to-list 'TeX-view-program-list '("eaf" eaf-pdf-synctex-forward-view))
                (add-to-list 'TeX-view-program-selection '(output-pdf "eaf"))))
  :config
  (eaf-bind-key scroll_up "C-n" eaf-pdf-viewer-keybinding)
  (eaf-bind-key scroll_down "C-p" eaf-pdf-viewer-keybinding))

(use-package eaf-markdown-previewer
  :after eaf)

Expected behavior Emacs keybind working, but no keybind is possible to input.

Versions (please complete the following info):

Error logs No logging

Additional context

manually setting this variable, eaf works as expected:

(setq eaf-wm-name "i3"
      eaf-is-member-of-focus-fix-wms t)

but something is going wrong 'cause the default eaf-wm-name was "" and eaf-is-member-of-focus-fix-wms was nil

manateelazycat commented 10 months ago

If you don't use a virtual machine, will you have this problem with a physical machine?

BrunodaSilvaBelo commented 10 months ago

Hi @manateelazycat, i tested on a Archlinux with a xfce4 de, and the same thing happens, no input and the eaf-wm-name is ""

manateelazycat commented 10 months ago

You can set eaf-wm-name with Xfwm4 if you use xfce4