summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-12-23 18:27:34 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-12-23 18:27:34 +0100
commitd7c7f49bf75259b0e5332c3989239e4fe217ef3b (patch)
treec18170695e653dd81a8b0985b8e793a77d4e6b52
parentf140cc545491178645eb883ea34c32531c37a4f5 (diff)
Do not handle changes of corfu-border-on-tty
We also don't handle changes of some other settings. Delete the frame manually to reset.
-rw-r--r--corfu.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/corfu.el b/corfu.el
index c0769aa..b3cde52 100644
--- a/corfu.el
+++ b/corfu.el
@@ -505,7 +505,6 @@ FRAME is the existing frame."
(after-make-frame-functions)
(parent (window-frame))
(graphic (display-graphic-p parent))
- (undecorated (or graphic (not corfu-border-on-tty)))
(params `((background-color
. ,(if (and (not graphic) (eq corfu-border-on-tty 'blended))
(face-background 'default)
@@ -515,7 +514,7 @@ FRAME is the existing frame."
(left-fringe . ,left-fringe-width)
(internal-border-width . ,corfu-border-width)
(child-frame-border-width . ,corfu-border-width)
- (undecorated . ,undecorated)
+ (undecorated . ,(or graphic (not corfu-border-on-tty)))
,@corfu--frame-parameters)))
(unless (and (frame-live-p frame)
(eq (frame-parent frame)
@@ -523,8 +522,6 @@ FRAME is the existing frame."
parent))
;; Handle mixed tty/graphical sessions
(eq graphic (display-graphic-p frame))
- ;; Handle TTY border visibility changes
- (eq undecorated (frame-parameter frame 'undecorated))
;; If there is more than one window, `frame-root-window' may
;; return nil. Recreate the frame in this case.
(window-live-p (frame-root-window frame)))