summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-05-11 20:42:31 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2022-05-11 20:42:31 +0200
commit3b3f7b6e6d1f8a1fd344fbbf63bed86b7ced334f (patch)
tree19ed4c22ebcc0acff6b383aa77fd6bc0f0a6781a
parentb4004a14a2ada1f3cbd7c21df99e6607572a0bb3 (diff)
Revert "Another attempt at working around the frame focus bug (#159)"
This reverts commit b4004a14a2ada1f3cbd7c21df99e6607572a0bb3.
-rw-r--r--corfu.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/corfu.el b/corfu.el
index cec6492..097ea9b 100644
--- a/corfu.el
+++ b/corfu.el
@@ -369,10 +369,7 @@ 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))
- ;; 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))))
+ (redirect-frame-focus corfu--frame (frame-parent corfu--frame))))
(defun corfu--make-buffer (content)
"Create corfu buffer with CONTENT."