summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-12-14 10:14:58 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-12-14 10:14:58 +0100
commitb74c649c27a06813b826b30f870b40c5784f127b (patch)
treed0d89ad0c7879c1ea30a559d8a3799bba01df755
parent4c4a41b0b3a7a65729b701670052d2287f57b427 (diff)
Set child-frame-border-width dynamically based on internal-border-width
-rw-r--r--corfu.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index e160556..dd89efb 100644
--- a/corfu.el
+++ b/corfu.el
@@ -340,7 +340,6 @@ settings `corfu-auto-delay', `corfu-auto-prefix' and
(border-width . 0)
(outer-border-width . 0)
(internal-border-width . 1)
- (child-frame-border-width . 1)
(vertical-scroll-bars . nil)
(horizontal-scroll-bars . nil)
(menu-bar-lines . 0)
@@ -499,6 +498,8 @@ FRAME is the existing frame."
(width . 0) (height . 0) (visibility . nil)
(right-fringe . ,right-fringe-width)
(left-fringe . ,left-fringe-width)
+ (child-frame-border-width
+ . ,(alist-get 'internal-border-width corfu--frame-parameters))
,@corfu--frame-parameters))))
;; XXX HACK Setting the same frame-parameter/face-background is not a nop.
;; Check before applying the setting. Without the check, the frame flickers
@@ -523,6 +524,8 @@ FRAME is the existing frame."
(font . ,(frame-parameter parent 'font))
(right-fringe . ,right-fringe-width)
(left-fringe . ,left-fringe-width)
+ (child-frame-border-width
+ . ,(alist-get 'internal-border-width corfu--frame-parameters))
,@corfu--frame-parameters))
(diff (cl-loop for p in should for (k . v) = p
unless (equal (alist-get k is) v) collect p)))