Skip to content

Commit

Permalink
Fix wrong-type-argument error on pgtk.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Oct 19, 2022
1 parent f2f0d85 commit 133b02e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions eaf.el
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,12 @@ kxsgtn/ignore_spurious_focus_events_for/")
(t
(defun eaf--wayland-focus-change ()
"Manage Emacs's focus change."
(if (frame-focus-state)
(eaf-call-async "show_top_views")
(eaf-call-async "hide_top_views")))
;; ignore errors related to
;; (wrong-type-argument eaf-epc-manager nil)
(ignore-errors
(if (frame-focus-state)
(eaf-call-async "show_top_views")
(eaf-call-async "hide_top_views"))))
(add-function :after after-focus-change-function #'eaf--wayland-focus-change)
(add-hook 'eaf-stop-process-hook (lambda () (remove-function after-focus-change-function #'eaf--wayland-focus-change)))
))))
Expand Down

0 comments on commit 133b02e

Please sign in to comment.