emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu b4004a14a2: Another attempt at working around the


From: ELPA Syncer
Subject: [elpa] externals/corfu b4004a14a2: Another attempt at working around the frame focus bug (#159)
Date: Mon, 9 May 2022 18:57:21 -0400 (EDT)

branch: externals/corfu
commit b4004a14a2ada1f3cbd7c21df99e6607572a0bb3
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Another attempt at working around the frame focus bug (#159)
---
 corfu.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index 097ea9bb52..cec6492e6a 100644
--- a/corfu.el
+++ b/corfu.el
@@ -369,7 +369,10 @@ The completion backend can override this with
 (defun corfu--popup-redirect-focus ()
   "Redirect focus from popup."
   (when (and (frame-live-p corfu--frame) (eq (selected-frame) corfu--frame))
-    (redirect-frame-focus corfu--frame (frame-parent corfu--frame))))
+    ;; I don't understand what I am doing...
+    ;; Why is this even necessary? The frame is marked with no-accept-focus!!!
+    (redirect-frame-focus corfu--frame (frame-parent corfu--frame))
+    (x-focus-frame (frame-parent corfu--frame))))
 
 (defun corfu--make-buffer (content)
   "Create corfu buffer with CONTENT."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]